Skip to content

ylim() crops plot when position='fill' #703

@ASmirnov-HORIS

Description

@ASmirnov-HORIS

Minimal reproducible example:

data = {
    'x': [0, 0, 0],
    'g': ['a', 'a', 'b'],
}
ggplot(data, aes(x='x', fill='g')) + \
    geom_bar(position='fill') + \
    ylim(0, 1)

Output:

Expected (as in ggplot2):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions