-
Notifications
You must be signed in to change notification settings - Fork 7
/
plotting_styles.py
97 lines (83 loc) · 2.23 KB
/
plotting_styles.py
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
"""Plotting styles
"""
from collections import OrderedDict
def linestyles():
"""
https://matplotlib.org/gallery/lines_bars_and_markers/linestyles.html
"""
linestyles = OrderedDict(
[
('solid', (0, ())),
('loosely dotted', (0, (1, 10))),
('dotted', (0, (1, 5))),
('densely dotted', (0, (1, 1))),
('loosely dashed', (0, (5, 10))),
('dashed', (0, (5, 5))),
('densely dashed', (0, (5, 1))),
('loosely dashdotted', (0, (3, 10, 1, 10))),
('dashdotted', (0, (3, 5, 1, 5))),
('densely dashdotted', (0, (3, 1, 1, 1))),
('loosely dashdotdotted', (0, (3, 10, 1, 10, 1, 10))),
('dashdotdotted', (0, (3, 5, 1, 5, 1, 5))),
('densely dashdotdotted', (0, (3, 1, 1, 1, 1, 1)))])
linestyles_out = {}
for nr, (name, linestyle) in enumerate(linestyles.items()):
linestyles_out[nr] = linestyle
return linestyles_out
def color_list():
""" List with colors
"""
color_list = [
'darkturquoise',
'orange',
'firebrick',
'darkviolet',
'khaki',
'olive',
'darkseagreen',
'darkcyan',
'indianred',
'darkblue',
'orchid',
'gainsboro',
'mediumseagreen',
'lightgray',
'mediumturquoise',
'darksage',
'lemonchiffon',
'cadetblue',
'lightyellow',
'lavenderblush',
'coral',
'purple',
'aqua',
'mediumslateblue',
'darkorange',
'mediumaquamarine',
'darksalmon',
'beige']
return color_list
def color_list_selection():
"""
"""
color_list_selection = [
'darkturquoise',
'orange',
'firebrick',
'darkviolet',
'khaki',
'olive',
'darkseagreen',
'darkcyan',
'indianred',
'darkblue']
return color_list_selection
def font_info():
"""
"""
font_additional_info = {
'family': 'arial',
'color': 'black',
'weight': 'normal',
'size': 8}
return font_additional_info