Skip to content

scale_y_reverse and transformations does not reverse #253

@TyberiusPrime

Description

@TyberiusPrime

Example

from plotnine import *
import pandas as pd

df = pd.DataFrame({
   'p': [0.1, 0.2, 0.3, 0.4, 0.5],
   'c': ['red','blue','lightblue','purple','green'],
   'x': ['x'] * 5
   
})
g = ggplot(df)
g += geom_point(aes('x','p', color='c'))
g += scale_color_identity()
g += scale_y_reverse(trans='log10')
g += ggtitle('scale_y_reverse')
g

image

Looks identical to scale_y_continuous:
image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions