<gh_stars>0
import plotnine as p9

class Theme(p9.themes.theme_gray):
    '''
    A theme similar to :class:`theme_linedraw` but with light grey
    lines and axes to direct more attention towards the data.

    Parameters
    ----------
    base_size : int, optional
        Base font size. All text sizes are a scaled versions of
        the base font size. Default is 11.
    base_family : str, optional
        Base font family.
    '''

    def __init__(self, base_size=11, base_family=None):
        p9.themes.theme_bw.__init__(self, base_size, base_family)
        self.add_theme(
            p9.themes.theme(
                axis_ticks=p9.themes.elements.element_line(color='#B3B3B3', size=0.5),
                axis_ticks_minor=p9.themes.elements.element_blank(),
                legend_key=p9.themes.elements.element_rect(fill='white', color='#7F7F7F', size=0.5),
                panel_background=p9.themes.elements.element_rect(fill='white'),
                panel_border=p9.themes.elements.element_rect(fill='None', color='#B3B3B3', size=1),
                panel_grid_major=p9.themes.elements.element_line(color='#D9D9D9', size=0.5),
                panel_grid_minor=p9.themes.elements.element_line(color='#EDEDED', size=0.25),
                strip_background=p9.themes.elements.element_rect(
                    fill='#B3B3B3', color='#B3B3B3', size=1,
                ),
                strip_text_x=p9.themes.elements.element_text(color='white'),
                strip_text_y=p9.themes.elements.element_text(color='white', angle=-90),
            ),
            inplace=True,
        )
import plotnine as p9

class Theme(p9.themes.theme_gray):
    '''
    A theme similar to :class:`theme_linedraw` but with light grey
    lines and axes to direct more attention towards the data.

    Parameters
    ----------
    base_size : int, optional
        Base font size. All text sizes are a scaled versions of
        the base font size. Default is 11.
    base_family : str, optional
        Base font family.
    '''

    def __init__(self, base_size=11, base_family=None):
        p9.themes.theme_bw.__init__(self, base_size, base_family)
        self.add_theme(
            p9.themes.theme(
                axis_ticks=p9.themes.elements.element_line(color='#B3B3B3', size=0.5),
                axis_ticks_minor=p9.themes.elements.element_blank(),
                legend_key=p9.themes.elements.element_rect(fill='white', color='#7F7F7F', size=0.5),
                panel_background=p9.themes.elements.element_rect(fill='white'),
                panel_border=p9.themes.elements.element_rect(fill='None', color='#B3B3B3', size=1),
                panel_grid_major=p9.themes.elements.element_line(color='#D9D9D9', size=0.5),
                panel_grid_minor=p9.themes.elements.element_line(color='#EDEDED', size=0.25),
                strip_background=p9.themes.elements.element_rect(
                    fill='#B3B3B3', color='#B3B3B3', size=1,
                ),
                strip_text_x=p9.themes.elements.element_text(color='white'),
                strip_text_y=p9.themes.elements.element_text(color='white', angle=-90),
            ),
            inplace=True,
        )
A theme similar to :class:`theme_linedraw` but with light grey     lines and axes to direct more attention towards the data.      Parameters     ----------     base_size : int, optional         Base font size. All text sizes are a scaled versions of         the base font size. Default is 11.     base_family : str, optional         Base font family.