-
Notifications
You must be signed in to change notification settings - Fork 1
/
scientific.mplstyle
171 lines (143 loc) · 7.79 KB
/
scientific.mplstyle
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
## ***************************************************************************************
##
##
##
## This is my style guide for creating matplotlib plots. It is updated as I come across
## new styles and colours that I like
##
## Author: Thomas Woolley
##
## Version 0.1.0: 14th October 2020
## - Initial file creation
## Version 0.1.1: 15th October 2020
## - Changed the default colours to tab:blue, tab:orange, tab:red and tab:green
## - Reduced the line width to 2.0 (from 2.5)
## - Added in minor tick marks
## Version 0.2.0: 20th October 2020
## - Reduced the number of lines by removing unnecessary params / cleaned up file
## - Fixed the issue with 3d plots
## - Changed the number of bins for histogram to 25
##
##
##
## ***************************************************************************************
### LINES (http://matplotlib.org/api/artist_api.html#module-matplotlib.lines)
lines.linewidth : 2.0
lines.linestyle : - # solid line
lines.antialiased : True # render lines in antialiased (no jaggies)
### AXES (http://matplotlib.org/api/axes_api.html#module-matplotlib.axes)
axes.facecolor : white # axes background color
axes.edgecolor : black # axes edge color
axes.linewidth : 1.0 # edge linewidth
axes.grid : True
axes.grid.which : major
axes.grid.axis : both
axes.titlesize : large # fontsize of the axes title
#axes.titley : 0.98 # at the top, no autopositioning.
axes.titlepad : 6.0 # pad between axes and title in points
axes.titleweight : normal # font weight for axes title
axes.labelsize : 16 # fontsize of the x any y labels
axes.labelpad : 5.0 # space between label and axis
axes.labelweight : normal # weight of the x and y labels
axes.labelcolor : black
axes.axisbelow : False # whether axis gridlines and ticks are below
# the axes elements (lines, text, etc)
axes.formatter.limits : -5, 6 # use scientific notation if log10
# of the axis range is smaller than the
# first or larger than the second
axes.formatter.use_mathtext : False # When True, use mathtext for scientific
# notation.
axes.formatter.useoffset : False # If True, the tick label formatter
# will default to labeling ticks relative
# to an offset when the data range is very
# small compared to the minimum absolute
# value of the data.
axes.formatter.offset_threshold : 4 # When useoffset is True, the offset
# will be used when it can remove
# at least this number of significant
# digits from tick labels.
axes.unicode_minus : True # use unicode for the minus symbol
# rather than hyphen
axes.prop_cycle : cycler(color=['tab:blue', 'tab:orange', 'tab:red', 'tab:green'])
# color cycle for plot lines
axes.autolimit_mode : data
axes.xmargin : .05 # x margin. See `axes.Axes.margins`
axes.ymargin : .05 # y margin See `axes.Axes.margins`
axes.spines.bottom : True
axes.spines.left : True
axes.spines.right : True
axes.spines.top : True
polaraxes.grid : True # display grid on polar axes
axes3d.grid : True # display grid on 3d axes
### Date Formatting
date.autoformatter.year: %Y
date.autoformatter.month: %m/%Y
date.autoformatter.day: %d/%m/%Y
date.autoformatter.hour: %d/%m %H
date.autoformatter.minute: %d %H:%M
date.autoformatter.second: %H:%M:%S
date.autoformatter.microsecond: %M:%S.%f
### TICKS (http://matplotlib.org/api/axis_api.html#matplotlib.axis.Tick)
xtick.top : True # draw ticks on the top side
xtick.bottom : True # draw ticks on the bottom side
xtick.major.size : 6.0 # major tick size in points
xtick.minor.size : 2.0 # minor tick size in points
xtick.minor.visible : True
xtick.major.width : 0.8 # major tick width in points
xtick.minor.width : 0.6 # minor tick width in points
xtick.major.pad : 3.5 # distance to major tick label in points
xtick.minor.pad : 3.4 # distance to the minor tick label in points
xtick.color : black # color of the tick labels
xtick.labelsize : 16 # fontsize of the tick labels
xtick.direction : in # direction: in, out, or inout
xtick.major.top : True # draw x axis top major ticks
xtick.major.bottom : True # draw x axis bottom major ticks
xtick.minor.top : True # draw x axis top minor ticks
xtick.minor.bottom : True # draw x axis bottom minor ticks
xtick.alignment : center
ytick.left : True # draw ticks on the left side
ytick.right : True # draw ticks on the right side
ytick.major.size : 6.0 # major tick size in points
ytick.minor.size : 3.0 # minor tick size in points
ytick.minor.visible : True
ytick.major.width : 0.8 # major tick width in points
ytick.minor.width : 0.6 # minor tick width in points
ytick.major.pad : 3.5 # distance to major tick label in points
ytick.minor.pad : 3.4 # distance to the minor tick label in points
ytick.color : black # color of the tick labels
ytick.labelsize : 16 # fontsize of the tick labels
ytick.direction : in # direction: in, out, or inout
ytick.major.left : True # draw y axis left major ticks
ytick.major.right : True # draw y axis right major ticks
ytick.minor.left : True # draw y axis left minor ticks
ytick.minor.right : True # draw y axis right minor ticks
ytick.alignment : center_baseline
### GRIDS
grid.color : b0b0b0 # grid color
grid.linestyle : - # solid
grid.linewidth : 1.0 # in points
grid.alpha : 0.3 # transparency, between 0.0 and 1.0
### FIGURE (http://matplotlib.org/api/figure_api.html#matplotlib.figure.Figure)
figure.titlesize : large # size of the figure title
figure.titleweight : normal # weight of the figure title
figure.figsize : 15, 10 # figure size in inches
figure.dpi : 100 # figure dots per inch
figure.facecolor : white # figure facecolor; 0.75 is scalar gray
figure.edgecolor : white # figure edgecolor
figure.autolayout : False # When True, automatically adjust subplot
# parameters to make the plot fit the figure
figure.frameon : True
figure.subplot.left : 0.125 # the left side of the subplots of the figure
figure.subplot.right : 0.95 # the right side of the subplots of the figure
figure.subplot.bottom : 0.10 # the bottom of the subplots of the figure
figure.subplot.top : 0.95 # the top of the subplots of the figure
figure.subplot.wspace : 0.2 # the amount of width reserved for space between subplots,
# expressed as a fraction of the average axis width
figure.subplot.hspace : 0.10 # the amount of height reserved for space between subplots,
# expressed as a fraction of the average axis height
### Errorbar Properties
errorbar.capsize: 3
### Scatter Properties
scatter.marker: s
### Histogram Properties
hist.bins: 25 # The default number of histogram bins or 'auto'