Skip to content

geom_bar: aes 'fill' and trans 'log10' break y scale #704

@ASmirnov-HORIS

Description

Example:

n = 1000
np.random.seed(42)
data = {
    "x": np.random.choice(["a", "b", "c"], p=[.49, .49, .02], size=n),
    "g": np.random.choice(["X", "Y"], size=n),
}
ggplot(data, aes(x="x", fill="g")) + geom_bar() + scale_y_continuous(trans='log10')

Output:

Screenshot_2023_02_24

Label values on y axis are much greater than expected. There is no such trouble if fill="g" or trans='log10' will be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions