Closed sixersfanhal closed 2 years ago
Using plotnine==0.8.0, when I run
plotnine==0.8.0
from plotnine import * from plotnine.data import mtcars (ggplot(mtcars.head(15), aes(x='wt', y='mpg')) + geom_point() + geom_text(aes(label='name'), adjust_text={'arrowprops': {'arrowstyle': '-'}}))
I get the following, which looks good
But if I add a color aesthetic I get something odd:
(ggplot(mtcars.head(15), aes(x='wt', y='mpg', color='factor(gear)')) + geom_point() + geom_text(aes(label='name'), adjust_text={'arrowprops': {'arrowstyle': '-'}}))
Any ideas? Thank you so much for this package, it's been extremely helpful.
Working with adjust_text was made a little more robust in v0.9.0. This behaviour does not show up!
adjust_text
Ahh awesome thank you!
Using
plotnine==0.8.0
, when I runI get the following, which looks good
But if I add a color aesthetic I get something odd:
Any ideas? Thank you so much for this package, it's been extremely helpful.