Skip to content

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

@TerryGamon

Description

@TerryGamon

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions