has2k1 / plotnine

A Grammar of Graphics for Python
https://plotnine.org
MIT License
3.99k stars 213 forks source link

AttributeError: 'YAxis' object has no attribute 'get_tick_params' on example plot #767

Closed jfhawkin closed 5 months ago

jfhawkin commented 6 months ago

I ran plotnine 0.13.4 and received the below error message. Downgrading to 0.13.3 solved the issue. It seems to be an error in the most recent release.

from plotnine import ggplot, geom_point, aes, stat_smooth, facet_wrap from plotnine.data import mtcars

( ggplot(mtcars, aes("wt", "mpg", color="factor(gear)"))

has2k1 commented 6 months ago

This is an installation dependency issue, you need matplotlib >= 3.7.0.

jfhawkin commented 6 months ago

Thanks! That was the issue. My environment was using matplotlib 3.6.3. It looks like I didn't copy the error into my message. It's in the issue name though.