File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Reference:
2+ # https://blog.gwlab.page/beautiful-plots-by-matplotlib-b5ca9fe2765f
3+ # https://github.com/garrettj403/SciencePlots/blob/master/scienceplots/styles/science.mplstyle
4+
5+
6+ # Set default figure size
7+ figure.figsize : 4, 3
8+
9+ # Set x axis
10+ xtick.direction : in
11+ xtick.major.size : 3
12+ xtick.major.width : 0.5
13+ xtick.major.pad : 7
14+ xtick.minor.size : 1.5
15+ xtick.minor.width : 0.5
16+ xtick.minor.visible : True
17+ xtick.top : True
18+
19+ # Set y axis
20+ ytick.direction : in
21+ ytick.major.size : 3
22+ ytick.major.width : 0.5
23+ ytick.major.pad : 4
24+ ytick.minor.size : 1.5
25+ ytick.minor.width : 0.5
26+ ytick.minor.visible : True
27+ ytick.right : True
28+
29+ # Set line widths
30+ axes.linewidth : 0.5
31+ grid.linewidth : 0.5
32+ lines.linewidth : 1
33+
34+ # Use serif fonts
35+ font.family : serif
36+ mathtext.fontset : dejavuserif
37+
38+ # Use LaTeX for math formatting
39+ text.usetex : True
40+ text.latex.preamble : \usepackage{amsmath} \usepackage{amssymb}
41+
42+ # Grid Color
43+ grid.color : 0.5
44+
45+ # Save Fig
46+ savefig.dpi : 300
You can’t perform that action at this time.
0 commit comments