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

Bar labels when bar is too short #34

Open
RemDelaporteMathurin opened this issue Feb 7, 2022 · 2 comments
Open

Bar labels when bar is too short #34

RemDelaporteMathurin opened this issue Feb 7, 2022 · 2 comments

Comments

@RemDelaporteMathurin
Copy link
Contributor

Sometimes when using show_bar_values(alignemnent="horizontal") and the bar is too small this can happen:
image

The expected behaviour would be:
image

@nschloe
Copy link
Owner

nschloe commented Feb 7, 2022

Same for verticals I guess.

@RemDelaporteMathurin
Copy link
Contributor Author

True! A simple post-processing of the texts checking if the bounding box of the annotation is greater than the width of the rectangle does the trick.

I'll try to find time to implement this :-)

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