How to use the plotnine.themes.elements.element_blank function in plotnine

To help you get started, we’ve selected a few plotnine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github has2k1 / plotnine / plotnine / themes / themeable.py View on Github external
def is_blank(self):
        """
        Return True if theme_element is made of element_blank
        """
        return isinstance(self.theme_element, element_blank)
github has2k1 / plotnine / plotnine / themes / theme_void.py View on Github external
def __init__(self, base_size=11, base_family='DejaVu Sans'):
        # Use only inherited elements and make everything blank
        theme.__init__(
            self,
            line=element_blank(),
            rect=element_blank(),
            text=element_text(
                family=base_family, style='normal', color='black',
                size=base_size, linespacing=0.9, ha='center',
                va='center', rotation=0),
            aspect_ratio=get_option('aspect_ratio'),
            dpi=get_option('dpi'),
            figure_size=get_option('figure_size'),
            plot_margin=None,
            panel_spacing=0,
            axis_text_x=element_blank(),
            axis_text_y=element_blank(),
            axis_title_x=element_blank(),
            axis_title_y=element_blank(),
            legend_entry_spacing_x=5,
            legend_entry_spacing_y=2,
            legend_text=element_text(size=base_size*0.8, ha='left'),
            legend_text_legend=element_text(va='baseline'),
            legend_title=element_text(ha='left'),
            strip_text=element_text(
                size=base_size*0.8, linespacing=1.8),

            complete=True)
github has2k1 / plotnine / plotnine / themes / theme_minimal.py View on Github external
def __init__(self, base_size=11, base_family='DejaVu Sans'):
        theme_bw.__init__(self, base_size, base_family)
        self.add_theme(
            theme(legend_background=element_blank(),
                  legend_key=element_blank(),
                  panel_background=element_blank(),
                  panel_border=element_blank(),
                  strip_background=element_blank(),
                  plot_background=element_blank(),
                  axis_ticks=element_blank(),
                  axis_ticks_length=12),
            inplace=True)
github has2k1 / plotnine / plotnine / themes / theme_minimal.py View on Github external
def __init__(self, base_size=11, base_family='DejaVu Sans'):
        theme_bw.__init__(self, base_size, base_family)
        self.add_theme(
            theme(legend_background=element_blank(),
                  legend_key=element_blank(),
                  panel_background=element_blank(),
                  panel_border=element_blank(),
                  strip_background=element_blank(),
                  plot_background=element_blank(),
                  axis_ticks=element_blank(),
                  axis_ticks_length=12),
            inplace=True)
github has2k1 / plotnine / plotnine / themes / theme_538.py View on Github external
def __init__(self, base_size=11, base_family='DejaVu Sans'):
        theme_gray.__init__(self, base_size, base_family)
        bgcolor = '#F0F0F0'
        self.add_theme(
            theme(
                axis_ticks=element_blank(),
                title=element_text(color='#3C3C3C'),
                legend_background=element_rect(fill='None'),
                legend_key=element_rect(fill='#E0E0E0'),
                panel_background=element_rect(fill=bgcolor),
                panel_border=element_blank(),
                panel_grid_major=element_line(
                    color='#D5D5D5', linetype='solid', size=1),
                panel_grid_minor=element_blank(),
                plot_background=element_rect(
                    fill=bgcolor, color=bgcolor, size=1),
                strip_background=element_rect(size=0)),
            inplace=True)
github has2k1 / plotnine / plotnine / themes / theme_538.py View on Github external
def __init__(self, base_size=11, base_family='DejaVu Sans'):
        theme_gray.__init__(self, base_size, base_family)
        bgcolor = '#F0F0F0'
        self.add_theme(
            theme(
                axis_ticks=element_blank(),
                title=element_text(color='#3C3C3C'),
                legend_background=element_rect(fill='None'),
                legend_key=element_rect(fill='#E0E0E0'),
                panel_background=element_rect(fill=bgcolor),
                panel_border=element_blank(),
                panel_grid_major=element_line(
                    color='#D5D5D5', linetype='solid', size=1),
                panel_grid_minor=element_blank(),
                plot_background=element_rect(
                    fill=bgcolor, color=bgcolor, size=1),
                strip_background=element_rect(size=0)),
            inplace=True)
github has2k1 / plotnine / plotnine / themes / theme_minimal.py View on Github external
def __init__(self, base_size=11, base_family='DejaVu Sans'):
        theme_bw.__init__(self, base_size, base_family)
        self.add_theme(
            theme(legend_background=element_blank(),
                  legend_key=element_blank(),
                  panel_background=element_blank(),
                  panel_border=element_blank(),
                  strip_background=element_blank(),
                  plot_background=element_blank(),
                  axis_ticks=element_blank(),
                  axis_ticks_length=12),
            inplace=True)
github has2k1 / plotnine / plotnine / themes / theme_minimal.py View on Github external
def __init__(self, base_size=11, base_family='DejaVu Sans'):
        theme_bw.__init__(self, base_size, base_family)
        self.add_theme(
            theme(legend_background=element_blank(),
                  legend_key=element_blank(),
                  panel_background=element_blank(),
                  panel_border=element_blank(),
                  strip_background=element_blank(),
                  plot_background=element_blank(),
                  axis_ticks=element_blank(),
                  axis_ticks_length=12),
            inplace=True)
github has2k1 / plotnine / plotnine / themes / theme_minimal.py View on Github external
def __init__(self, base_size=11, base_family='DejaVu Sans'):
        theme_bw.__init__(self, base_size, base_family)
        self.add_theme(
            theme(legend_background=element_blank(),
                  legend_key=element_blank(),
                  panel_background=element_blank(),
                  panel_border=element_blank(),
                  strip_background=element_blank(),
                  plot_background=element_blank(),
                  axis_ticks=element_blank(),
                  axis_ticks_length=12),
            inplace=True)
github has2k1 / plotnine / plotnine / themes / theme_void.py View on Github external
# Use only inherited elements and make everything blank
        theme.__init__(
            self,
            line=element_blank(),
            rect=element_blank(),
            text=element_text(
                family=base_family, style='normal', color='black',
                size=base_size, linespacing=0.9, ha='center',
                va='center', rotation=0),
            aspect_ratio=get_option('aspect_ratio'),
            dpi=get_option('dpi'),
            figure_size=get_option('figure_size'),
            plot_margin=None,
            panel_spacing=0,
            axis_text_x=element_blank(),
            axis_text_y=element_blank(),
            axis_title_x=element_blank(),
            axis_title_y=element_blank(),
            legend_entry_spacing_x=5,
            legend_entry_spacing_y=2,
            legend_text=element_text(size=base_size*0.8, ha='left'),
            legend_text_legend=element_text(va='baseline'),
            legend_title=element_text(ha='left'),
            strip_text=element_text(
                size=base_size*0.8, linespacing=1.8),

            complete=True)