Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seaborn.objects dodged bar width gets strangely narrow after specifying text parameter to so.Plot #3777

Open
frfeng opened this issue Nov 5, 2024 · 1 comment

Comments

@frfeng
Copy link

frfeng commented Nov 5, 2024

I'm not sure if it's related to 3769. It seems the dodged bar width gets strangely narrower after specifying the text parameter to the so.Plot().

MWE:

(
    pd.DataFrame({
        'x': ['A', 'A', 'B', 'B', 'C', 'C'], 
        'color': ['X', 'Y', 'X', 'Y', 'X', 'Y'],
        'y': range(1, 7),
    })
    .pipe(so.Plot, x='x', y='y', color='color', text='y')
    .add(so.Bar(), so.Dodge())
    .add(so.Text(valign='bottom'), so.Dodge())
)
Screenshot 2024-11-05 at 2 11 23 PM
@juhabae
Copy link

juhabae commented Nov 15, 2024

Hello, we are computer science students interested in contributing to the Seaborn project. We came across this issue and would like to work on resolving it. Could we take this on?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants