Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, base_size=11, base_family='DejaVu Sans'):
theme_gray.__init__(self, base_size, base_family)
self.add_theme(theme(
axis_ticks=element_line(color='#B3B3B3', size=0.5),
legend_key=element_rect(fill='white', color='#7F7F7F', size=0.5),
panel_background=element_rect(fill='white'),
panel_border=element_rect(fill='None', color='#B3B3B3', size=1),
panel_grid_major=element_line(color='#D9D9D9', size=0.5),
panel_grid_minor=element_line(color='#EDEDED', size=0.25),
strip_background=element_rect(
fill='#B3B3B3', color='#B3B3B3', size=1),
strip_text_x=element_text(color='white'),
strip_text_y=element_text(color='white', angle=-90)
), inplace=True)
def __init__(self, base_size=11, base_family='DejaVu Sans'):
theme_gray.__init__(self, base_size, base_family)
self.add_theme(theme(
axis_ticks=element_line(color='#666666', size=0.5),
legend_key=element_rect(
fill='#7F7F7F', color='#666666', size=0.5),
panel_background=element_rect(fill='#7F7F7F', color='None'),
panel_grid_major=element_line(color='#666666', size=0.5),
panel_grid_minor=element_line(color='#737373', size=0.25),
strip_background=element_rect(fill='#333333', color='None'),
strip_text_x=element_text(color='white'),
strip_text_y=element_text(color='white', angle=-90)
), inplace=True)
def __init__(self, base_size=11, base_family='DejaVu Sans'):
theme_gray.__init__(self, base_size, base_family)
self.add_theme(
theme(axis_text=element_text(size=0.8*base_size),
axis_ticks=element_line(color='black'),
legend_key=element_rect(color='#CCCCCC'),
panel_background=element_rect(
fill='white'),
panel_border=element_rect(
fill='None', color='#7f7f7f'),
panel_grid_major=element_line(
color='#E5E5E5', size=0.8),
panel_grid_minor=element_line(
color='#FAFAFA', size=1),
strip_background=element_rect(
fill='#CCCCCC', color='#7F7F7F', size=1)),
inplace=True)
def __init__(self, base_size=11, base_family='DejaVu Sans'):
theme_gray.__init__(self, base_size, base_family)
self.add_theme(theme(
axis_ticks=element_line(color='#B3B3B3', size=0.5),
legend_key=element_rect(fill='white', color='#7F7F7F', size=0.5),
panel_background=element_rect(fill='white'),
panel_border=element_rect(fill='None', color='#B3B3B3', size=1),
panel_grid_major=element_line(color='#D9D9D9', size=0.5),
panel_grid_minor=element_line(color='#EDEDED', size=0.25),
strip_background=element_rect(
fill='#B3B3B3', color='#B3B3B3', size=1),
strip_text_x=element_text(color='white'),
strip_text_y=element_text(color='white', angle=-90)
), inplace=True)
theme(
text=element_text(
family=['xkcd', 'Humor Sans', 'Comic Sans MS']),
axis_ticks=element_line(color='black', size=1.5),
axis_ticks_direction='in',
axis_ticks_length_major=6,
legend_background=element_rect(
color='black', fill='None'),
legend_key=element_rect(fill='None'),
panel_border=element_rect(color='black', size=1.5),
panel_grid=element_blank(),
panel_background=element_rect(fill='white'),
strip_background=element_rect(
color='black', fill='white'),
strip_background_x=element_rect(width=2/3.),
strip_background_y=element_rect(height=2/3.),
strip_margin=-0.5,
),
inplace=True)
d = {'axes.unicode_minus': False,
'path.sketch': (scale, length, randomness),
'path.effects': [
patheffects.withStroke(
linewidth=stroke_size,
foreground=stroke_color)]
}
self._rcParams.update(d)
axis_ticks_length_minor=half_line/4,
axis_ticks_minor=element_blank(),
axis_ticks_direction='out',
axis_ticks_pad=2,
axis_title_x=element_text(
va='top', margin={'t': half_line*0.8}),
axis_title_y=element_text(
angle=90, va='bottom', margin={'r': half_line*0.8}),
dpi=get_option('dpi'),
figure_size=get_option('figure_size'),
# legend, None values are for parameters where the
# drawing routines can make better decisions than
# can be pre-determined in the theme.
legend_background=element_rect(color='None'),
legend_entry_spacing_x=5,
legend_entry_spacing_y=2,
legend_key=element_rect(fill='#F2F2F2',
colour='None'),
legend_key_size=base_size*0.8*1.8,
legend_key_height=None,
legend_key_width=None,
legend_margin=0, # points
legend_spacing=10, # points
legend_text=element_text(
size=base_size*0.8, ha='left',
margin={'t': 3, 'b': 3, 'l': 3, 'r': 3,
'units': 'pt'}),
legend_text_legend=element_text(va='baseline'),
legend_text_colorbar=element_text(va='center'),
legend_title=element_text(ha='left',
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)
def __init__(self, base_size=12, scale=1, length=100, randomness=2,
stroke_size=4, stroke_color='white'):
theme_gray.__init__(self, base_size)
self.add_theme(
theme(
text=element_text(
family=['xkcd', 'Humor Sans', 'Comic Sans MS']),
axis_ticks=element_line(color='black', size=1.5),
axis_ticks_direction='in',
axis_ticks_length_major=6,
legend_background=element_rect(
color='black', fill='None'),
legend_key=element_rect(fill='None'),
panel_border=element_rect(color='black', size=1.5),
panel_grid=element_blank(),
panel_background=element_rect(fill='white'),
strip_background=element_rect(
color='black', fill='white'),
strip_background_x=element_rect(width=2/3.),
strip_background_y=element_rect(height=2/3.),
strip_margin=-0.5,
),
inplace=True)
d = {'axes.unicode_minus': False,
'path.sketch': (scale, length, randomness),
'path.effects': [
patheffects.withStroke(
linewidth=stroke_size,
def __init__(self, base_size=11, base_family='DejaVu Sans'):
theme_bw.__init__(self, base_size, base_family)
self.add_theme(
theme(panel_border=element_blank(),
axis_line=element_line(color='black'),
panel_grid_major=element_line(),
panel_grid_major_x=element_blank(),
panel_grid_major_y=element_blank(),
panel_grid_minor=element_line(),
panel_grid_minor_x=element_blank(),
panel_grid_minor_y=element_blank(),
strip_background=element_rect(
colour='black', fill='None', size=1),
legend_key=element_blank()),
inplace=True)
def __init__(self, base_size=11, base_family='DejaVu Sans'):
theme_gray.__init__(self, base_size, base_family)
self.add_theme(theme(
axis_text=element_text(color='black', size=base_size*0.8),
axis_ticks=element_line(color='black', size=0.5),
legend_key=element_rect(color='black', size=0.5),
panel_background=element_rect(fill='white'),
panel_border=element_rect(fill='None', color='black', size=1),
panel_grid_major=element_line(color='black', size=0.1),
panel_grid_minor=element_line(color='black', size=0.02),
strip_background=element_rect(
fill='black', color='black', size=1),
strip_text_x=element_text(color='white'),
strip_text_y=element_text(color='white', angle=-90)
), inplace=True)