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

Strange behavior with geom_label() using boxstyle other than default (round) exept for round4 #779

Closed
TerryGamon opened this issue May 5, 2024 · 0 comments
Labels
Addressed in Next Version The issue has been fixed, but it has not in the current official release. bug

Comments

@TerryGamon
Copy link

Maybe I am missing something here (setting some parameters?) but at least 'square' should be straight forward.

import plotnine as p9
from plotnine.data import mtcars

(p9.ggplot(mtcars, p9.aes('wt', 'mpg', label='name'))
 + p9.geom_point()
 + p9.geom_label(boxstyle='round')
)

so far so good:

image


import plotnine as p9
from plotnine.data import mtcars
(p9.ggplot(mtcars, p9.aes('wt', 'mpg', label='name'))
 + p9.geom_point()
 + p9.geom_label(boxstyle='square')
)

ValueError: Incorrect style argument: 'square,pad=0.25,'

same issue with:

  • 'circle'
  • 'darrow'
  • 'larrow'
  • 'rarrow'
  • 'roundtooth'
  • 'sawtooth'
  • 'square'

Thanks for your hard work! Wouldn't know what to do without plotnine!

@has2k1 has2k1 added the bug label May 5, 2024
@has2k1 has2k1 added the Addressed in Next Version The issue has been fixed, but it has not in the current official release. label May 6, 2024
@has2k1 has2k1 closed this as completed in 0b5478a May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Addressed in Next Version The issue has been fixed, but it has not in the current official release. bug
Projects
None yet
Development

No branches or pull requests

2 participants