-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvisual_standard.py
More file actions
36 lines (28 loc) · 1.09 KB
/
visual_standard.py
File metadata and controls
36 lines (28 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import matplotlib.pyplot as plt
import matplotlib as mpl
from cycler import cycler
plt.rcdefaults()
# Could use Style Guide Instead of Custom
thickness = 3
fsize = 18
mpl.rcParams['lines.linewidth'] = thickness
mpl.rcParams['lines.linestyle'] = '-'
mpl.rcParams['lines.markersize'] = 10
mpl.rcParams['axes.titlesize'] = fsize
mpl.rcParams['axes.labelsize'] = fsize
mpl.rcParams['xtick.labelsize'] = fsize#-8
mpl.rcParams['ytick.labelsize'] = fsize#-8
# Settings ensure that textboxes are recognizable in illustrator once exported
mpl.rcParams['pdf.fonttype'] = 42
mpl.rcParams['ps.fonttype'] = 42
#Set Border Width
mpl.rcParams['axes.linewidth'] = 2
#Tick Mark Settings
mpl.rcParams['xtick.major.size'] = 3*thickness
mpl.rcParams['xtick.major.width'] = thickness
mpl.rcParams['ytick.major.size'] = 3*thickness
mpl.rcParams['ytick.major.width'] = thickness
# Fonts
mpl.rcParams['font.sans-serif'] = 'Helvetica'
# mpl.rcParams['font.weight'] = 'bold'
mpl.rcParams['axes.prop_cycle'] = cycler(color=['#0072B2', '#D55E00', '#009E73', '#CC79A7','darkgrey', '#56B4E9','#E69F00','#F0E442']) # can add black: '#000000'