Skip to content

Inconsistent tick behavior between themes #348

Description

@jbechtel

When switching between different themes, the minor ticks are inconsistently displayed. For instance, for theme_grey() and theme_538() the minor ticks are not displayed, but for theme_bw() and theme_xkcd() they are displayed. It would be great if the minor ticks were displayed consistently between all themes (I prefer not showing them!). But in the meantime, if I would like to use the theme_bw() with no minor ticks (but keeping the minor grid lines), how would I go about that?

Here are some examples:

from plotnine import *
from plotnine.data import mtcars

(ggplot(mtcars, aes('wt', 'mpg', color='factor(gear)'))
 + geom_point()
 + stat_smooth(method='lm')
 + facet_wrap('~gear')
 + theme_grey()
)

Screen Shot 2020-01-30 at 8 33 23 AM

(ggplot(mtcars, aes('wt', 'mpg', color='factor(gear)'))
 + geom_point()
 + stat_smooth(method='lm')
 + facet_wrap('~gear')
 + theme_bw()
)

Screen Shot 2020-01-30 at 8 35 11 AM

(ggplot(mtcars, aes('wt', 'mpg', color='factor(gear)'))
 + geom_point()
 + stat_smooth(method='lm')
 + facet_wrap('~gear')
 + theme_538()
)

Screen Shot 2020-01-30 at 8 36 10 AM

(ggplot(mtcars, aes('wt', 'mpg', color='factor(gear)'))
 + geom_point()
 + stat_smooth(method='lm')
 + facet_wrap('~gear')
 + theme_xkcd())

Screen Shot 2020-01-30 at 8 36 45 AM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions