Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# 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',
margin={'t': half_line*0.8,
'b': half_line*0.8,
'l': half_line*0.8,
'r': half_line*0.8,
'units': 'pt'}),
legend_title_align=None,
legend_position='right',
legend_box=None,
legend_box_margin=10, # points
legend_box_just=None,
legend_box_spacing=0.1, # In inches
legend_direction=None,
panel_background=element_rect(fill='#EBEBEB'),
theme.__init__(
self,
line=element_line(color='black', size=1,
linetype='solid', lineend='butt'),
rect=element_rect(fill='white', color='black',
size=1, linetype='solid'),
text=element_text(family=base_family, style='normal',
color='black', size=base_size,
linespacing=0.9, ha='center',
va='center', rotation=0, margin={}),
aspect_ratio=get_option('aspect_ratio'),
axis_line=element_line(),
axis_line_x=element_blank(),
axis_line_y=element_blank(),
axis_text=element_text(size=base_size*.8,
color='#4D4D4D'),
axis_text_x=element_text(
va='top', margin={'t': half_line*0.8/2}),
axis_text_y=element_text(
ha='right', margin={'r': half_line*0.8/2}),
axis_ticks=element_line(color='#333333'),
axis_ticks_length=0,
axis_ticks_length_major=half_line/2,
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}),
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)
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)
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)
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',
margin={'t': half_line*0.8,
'b': half_line*0.8,
'l': half_line*0.8,
'r': half_line*0.8,
'units': 'pt'}),
legend_title_align=None,
legend_position='right',
legend_box=None,
legend_box_margin=10, # points
legend_box_just=None,
legend_box_spacing=0.1, # In inches
legend_direction=None,
panel_background=element_rect(fill='#EBEBEB'),
panel_border=element_blank(),
panel_grid_major=element_line(color='white', size=1),
panel_background=element_rect(fill='#EBEBEB'),
panel_border=element_blank(),
panel_grid_major=element_line(color='white', size=1),
panel_grid_minor=element_line(color='white', size=0.5),
panel_spacing=0.07,
panel_spacing_x=0.07,
panel_spacing_y=0.07,
panel_ontop=True,
strip_background=element_rect(fill='#D9D9D9', color='None'),
strip_margin=0,
strip_margin_x=None,
strip_margin_y=None,
strip_text=element_text(color='#1A1A1A', size=base_size*0.8,
linespacing=1.0),
strip_text_x=element_text(
margin={'t': half_line/2, 'b': half_line/2}),
strip_text_y=element_text(
margin={'l': half_line/2, 'r': half_line/2},
rotation=-90),
plot_background=element_rect(color='white'),
plot_title=element_text(size=base_size*1.2,
margin={'b': half_line*1.2,
'units': 'pt'}),
plot_margin=None,
complete=True)
panel_grid_major=element_line(color='white', size=1),
panel_grid_minor=element_line(color='white', size=0.5),
panel_spacing=0.07,
panel_spacing_x=0.07,
panel_spacing_y=0.07,
panel_ontop=True,
strip_background=element_rect(fill='#D9D9D9', color='None'),
strip_margin=0,
strip_margin_x=None,
strip_margin_y=None,
strip_text=element_text(color='#1A1A1A', size=base_size*0.8,
linespacing=1.0),
strip_text_x=element_text(
margin={'t': half_line/2, 'b': half_line/2}),
strip_text_y=element_text(
margin={'l': half_line/2, 'r': half_line/2},
rotation=-90),
plot_background=element_rect(color='white'),
plot_title=element_text(size=base_size*1.2,
margin={'b': half_line*1.2,
'units': 'pt'}),
plot_margin=None,
complete=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)