plotastro 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- plotastro/__init__.py +68 -0
- plotastro/_authors.py +302 -0
- plotastro/_colors.py +227 -0
- plotastro/_core.py +256 -0
- plotastro/_extras.py +187 -0
- plotastro/styles/aanda.mplstyle +101 -0
- plotastro/styles/apj.mplstyle +101 -0
- plotastro/styles/jcap.mplstyle +100 -0
- plotastro/styles/mnras.mplstyle +101 -0
- plotastro/styles/natastro.mplstyle +102 -0
- plotastro/styles/oja.mplstyle +102 -0
- plotastro/styles/prd.mplstyle +101 -0
- plotastro/styles/rasti.mplstyle +101 -0
- plotastro-1.0.0.dist-info/METADATA +432 -0
- plotastro-1.0.0.dist-info/RECORD +18 -0
- plotastro-1.0.0.dist-info/WHEEL +4 -0
- plotastro-1.0.0.dist-info/entry_points.txt +2 -0
- plotastro-1.0.0.dist-info/licenses/LICENSE +23 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# =====================================================================
|
|
2
|
+
# jcap.mplstyle — Journal of Cosmology and Astroparticle Physics (JCAP)
|
|
3
|
+
#
|
|
4
|
+
# Figure widths:
|
|
5
|
+
# single column layout: text width ~455 pt = 6.30 in (~16 cm)
|
|
6
|
+
# (approximate; measure \the\textwidth in your own build)
|
|
7
|
+
# The default figsize below is one column wide with a golden-ratio
|
|
8
|
+
# height. For other sizes use plotastro.figsize() / plotastro.subplots().
|
|
9
|
+
#
|
|
10
|
+
# Colours: colour-blind-friendly cycle — see the README for details.
|
|
11
|
+
# Generated by tools/generate_styles.py — edit that, not this file.
|
|
12
|
+
#
|
|
13
|
+
# Usage: import plotastro; plotastro.set_style("jcap")
|
|
14
|
+
# or: import plotastro; plt.style.use("jcap")
|
|
15
|
+
# =====================================================================
|
|
16
|
+
|
|
17
|
+
## ---- Lines & markers ------------------------------------------------
|
|
18
|
+
lines.linewidth : 1.2
|
|
19
|
+
lines.markersize : 4
|
|
20
|
+
lines.markeredgewidth : 0.8
|
|
21
|
+
errorbar.capsize : 2
|
|
22
|
+
patch.linewidth : 0.8
|
|
23
|
+
|
|
24
|
+
## ---- Fonts ----------------------------------------------------------
|
|
25
|
+
font.family : serif
|
|
26
|
+
font.serif : Times New Roman, Times, Nimbus Roman, STIXGeneral, DejaVu Serif
|
|
27
|
+
font.size : 9
|
|
28
|
+
mathtext.fontset : stix # Times-compatible maths without LaTeX
|
|
29
|
+
|
|
30
|
+
# Full LaTeX text rendering (needs a working LaTeX installation).
|
|
31
|
+
# Uncomment below, or call plotastro.set_style("jcap", usetex=True).
|
|
32
|
+
#text.usetex : True
|
|
33
|
+
#text.latex.preamble : \usepackage{newtxtext}\usepackage{newtxmath}
|
|
34
|
+
|
|
35
|
+
## ---- Axes -----------------------------------------------------------
|
|
36
|
+
axes.linewidth : 0.6
|
|
37
|
+
axes.labelsize : medium
|
|
38
|
+
axes.titlesize : medium
|
|
39
|
+
axes.labelpad : 3
|
|
40
|
+
axes.axisbelow : True # grid behind the data
|
|
41
|
+
axes.formatter.use_mathtext: True
|
|
42
|
+
axes.xmargin : 0.03
|
|
43
|
+
axes.ymargin : 0.05
|
|
44
|
+
|
|
45
|
+
# Colour-blind-friendly colour cycle (see README, "The colour palette")
|
|
46
|
+
axes.prop_cycle : cycler('color', ['377eb8', 'ff7f00', '4daf4a', 'f781bf', 'a65628', '984ea3', '999999', 'e41a1c', 'dede00', 'a2c8ec', 'ffbc79', 'ababab'])
|
|
47
|
+
|
|
48
|
+
## ---- Grid (subtle; set axes.grid: False to disable) -----------------
|
|
49
|
+
axes.grid : True
|
|
50
|
+
grid.linewidth : 0.4
|
|
51
|
+
grid.alpha : 0.25
|
|
52
|
+
|
|
53
|
+
## ---- Ticks: all four sides, pointing in, with minors ----------------
|
|
54
|
+
xtick.direction : in
|
|
55
|
+
xtick.top : True
|
|
56
|
+
xtick.bottom : True
|
|
57
|
+
xtick.minor.visible : True
|
|
58
|
+
xtick.major.size : 3.5
|
|
59
|
+
xtick.minor.size : 2
|
|
60
|
+
xtick.major.width : 0.6
|
|
61
|
+
xtick.minor.width : 0.4
|
|
62
|
+
xtick.labelsize : small # ~1 pt below the base font size
|
|
63
|
+
|
|
64
|
+
ytick.direction : in
|
|
65
|
+
ytick.left : True
|
|
66
|
+
ytick.right : True
|
|
67
|
+
ytick.minor.visible : True
|
|
68
|
+
ytick.major.size : 3.5
|
|
69
|
+
ytick.minor.size : 2
|
|
70
|
+
ytick.major.width : 0.6
|
|
71
|
+
ytick.minor.width : 0.4
|
|
72
|
+
ytick.labelsize : small
|
|
73
|
+
|
|
74
|
+
## ---- Legend ---------------------------------------------------------
|
|
75
|
+
legend.fontsize : small
|
|
76
|
+
legend.title_fontsize : small
|
|
77
|
+
legend.frameon : False
|
|
78
|
+
legend.handlelength : 1.8
|
|
79
|
+
legend.handletextpad : 0.5
|
|
80
|
+
legend.labelspacing : 0.3
|
|
81
|
+
legend.columnspacing : 1.2
|
|
82
|
+
legend.borderaxespad : 0.4
|
|
83
|
+
|
|
84
|
+
## ---- Figure ---------------------------------------------------------
|
|
85
|
+
figure.figsize : 6.2992, 3.8932 # one column, golden ratio
|
|
86
|
+
figure.dpi : 150 # on-screen / notebook display
|
|
87
|
+
figure.titlesize : medium
|
|
88
|
+
figure.constrained_layout.use : True # no cut-off labels
|
|
89
|
+
|
|
90
|
+
## ---- Images ---------------------------------------------------------
|
|
91
|
+
image.cmap : viridis
|
|
92
|
+
#image.origin : lower # uncomment for the astro image convention
|
|
93
|
+
|
|
94
|
+
## ---- Saving ---------------------------------------------------------
|
|
95
|
+
savefig.format : pdf # journals prefer vector formats
|
|
96
|
+
savefig.dpi : 450 # comfortably above journal raster minimums
|
|
97
|
+
savefig.bbox : tight
|
|
98
|
+
savefig.pad_inches : 0.02
|
|
99
|
+
pdf.fonttype : 42 # embed TrueType fonts (no Type-3)
|
|
100
|
+
ps.fonttype : 42
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# =====================================================================
|
|
2
|
+
# mnras.mplstyle — Monthly Notices of the Royal Astronomical Society
|
|
3
|
+
#
|
|
4
|
+
# Figure widths:
|
|
5
|
+
# one column : 240.00 pt = 3.32 in
|
|
6
|
+
# full width : 504.00 pt = 6.97 in
|
|
7
|
+
# (from the mnras LaTeX class)
|
|
8
|
+
# The default figsize below is one column wide with a golden-ratio
|
|
9
|
+
# height. For other sizes use plotastro.figsize() / plotastro.subplots().
|
|
10
|
+
#
|
|
11
|
+
# Colours: colour-blind-friendly cycle — see the README for details.
|
|
12
|
+
# Generated by tools/generate_styles.py — edit that, not this file.
|
|
13
|
+
#
|
|
14
|
+
# Usage: import plotastro; plotastro.set_style("mnras")
|
|
15
|
+
# or: import plotastro; plt.style.use("mnras")
|
|
16
|
+
# =====================================================================
|
|
17
|
+
|
|
18
|
+
## ---- Lines & markers ------------------------------------------------
|
|
19
|
+
lines.linewidth : 1.2
|
|
20
|
+
lines.markersize : 4
|
|
21
|
+
lines.markeredgewidth : 0.8
|
|
22
|
+
errorbar.capsize : 2
|
|
23
|
+
patch.linewidth : 0.8
|
|
24
|
+
|
|
25
|
+
## ---- Fonts ----------------------------------------------------------
|
|
26
|
+
font.family : serif
|
|
27
|
+
font.serif : Times New Roman, Times, Nimbus Roman, STIXGeneral, DejaVu Serif
|
|
28
|
+
font.size : 9
|
|
29
|
+
mathtext.fontset : stix # Times-compatible maths without LaTeX
|
|
30
|
+
|
|
31
|
+
# Full LaTeX text rendering (needs a working LaTeX installation).
|
|
32
|
+
# Uncomment below, or call plotastro.set_style("mnras", usetex=True).
|
|
33
|
+
#text.usetex : True
|
|
34
|
+
#text.latex.preamble : \usepackage{newtxtext}\usepackage{newtxmath}
|
|
35
|
+
|
|
36
|
+
## ---- Axes -----------------------------------------------------------
|
|
37
|
+
axes.linewidth : 0.6
|
|
38
|
+
axes.labelsize : medium
|
|
39
|
+
axes.titlesize : medium
|
|
40
|
+
axes.labelpad : 3
|
|
41
|
+
axes.axisbelow : True # grid behind the data
|
|
42
|
+
axes.formatter.use_mathtext: True
|
|
43
|
+
axes.xmargin : 0.03
|
|
44
|
+
axes.ymargin : 0.05
|
|
45
|
+
|
|
46
|
+
# Colour-blind-friendly colour cycle (see README, "The colour palette")
|
|
47
|
+
axes.prop_cycle : cycler('color', ['377eb8', 'ff7f00', '4daf4a', 'f781bf', 'a65628', '984ea3', '999999', 'e41a1c', 'dede00', 'a2c8ec', 'ffbc79', 'ababab'])
|
|
48
|
+
|
|
49
|
+
## ---- Grid (subtle; set axes.grid: False to disable) -----------------
|
|
50
|
+
axes.grid : True
|
|
51
|
+
grid.linewidth : 0.4
|
|
52
|
+
grid.alpha : 0.25
|
|
53
|
+
|
|
54
|
+
## ---- Ticks: all four sides, pointing in, with minors ----------------
|
|
55
|
+
xtick.direction : in
|
|
56
|
+
xtick.top : True
|
|
57
|
+
xtick.bottom : True
|
|
58
|
+
xtick.minor.visible : True
|
|
59
|
+
xtick.major.size : 3.5
|
|
60
|
+
xtick.minor.size : 2
|
|
61
|
+
xtick.major.width : 0.6
|
|
62
|
+
xtick.minor.width : 0.4
|
|
63
|
+
xtick.labelsize : small # ~1 pt below the base font size
|
|
64
|
+
|
|
65
|
+
ytick.direction : in
|
|
66
|
+
ytick.left : True
|
|
67
|
+
ytick.right : True
|
|
68
|
+
ytick.minor.visible : True
|
|
69
|
+
ytick.major.size : 3.5
|
|
70
|
+
ytick.minor.size : 2
|
|
71
|
+
ytick.major.width : 0.6
|
|
72
|
+
ytick.minor.width : 0.4
|
|
73
|
+
ytick.labelsize : small
|
|
74
|
+
|
|
75
|
+
## ---- Legend ---------------------------------------------------------
|
|
76
|
+
legend.fontsize : small
|
|
77
|
+
legend.title_fontsize : small
|
|
78
|
+
legend.frameon : False
|
|
79
|
+
legend.handlelength : 1.8
|
|
80
|
+
legend.handletextpad : 0.5
|
|
81
|
+
legend.labelspacing : 0.3
|
|
82
|
+
legend.columnspacing : 1.2
|
|
83
|
+
legend.borderaxespad : 0.4
|
|
84
|
+
|
|
85
|
+
## ---- Figure ---------------------------------------------------------
|
|
86
|
+
figure.figsize : 3.3209, 2.0524 # one column, golden ratio
|
|
87
|
+
figure.dpi : 150 # on-screen / notebook display
|
|
88
|
+
figure.titlesize : medium
|
|
89
|
+
figure.constrained_layout.use : True # no cut-off labels
|
|
90
|
+
|
|
91
|
+
## ---- Images ---------------------------------------------------------
|
|
92
|
+
image.cmap : viridis
|
|
93
|
+
#image.origin : lower # uncomment for the astro image convention
|
|
94
|
+
|
|
95
|
+
## ---- Saving ---------------------------------------------------------
|
|
96
|
+
savefig.format : pdf # journals prefer vector formats
|
|
97
|
+
savefig.dpi : 450 # comfortably above journal raster minimums
|
|
98
|
+
savefig.bbox : tight
|
|
99
|
+
savefig.pad_inches : 0.02
|
|
100
|
+
pdf.fonttype : 42 # embed TrueType fonts (no Type-3)
|
|
101
|
+
ps.fonttype : 42
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# =====================================================================
|
|
2
|
+
# natastro.mplstyle — Nature Astronomy
|
|
3
|
+
#
|
|
4
|
+
# Figure widths:
|
|
5
|
+
# one column : 253.23 pt = 3.50 in (89 mm)
|
|
6
|
+
# full width : 520.68 pt = 7.20 in (183 mm)
|
|
7
|
+
# (Nature-family figure guide; note the SANS-SERIF fonts
|
|
8
|
+
# and smaller lettering Nature requires)
|
|
9
|
+
# The default figsize below is one column wide with a golden-ratio
|
|
10
|
+
# height. For other sizes use plotastro.figsize() / plotastro.subplots().
|
|
11
|
+
#
|
|
12
|
+
# Colours: colour-blind-friendly cycle — see the README for details.
|
|
13
|
+
# Generated by tools/generate_styles.py — edit that, not this file.
|
|
14
|
+
#
|
|
15
|
+
# Usage: import plotastro; plotastro.set_style("natastro")
|
|
16
|
+
# or: import plotastro; plt.style.use("natastro")
|
|
17
|
+
# =====================================================================
|
|
18
|
+
|
|
19
|
+
## ---- Lines & markers ------------------------------------------------
|
|
20
|
+
lines.linewidth : 1.2
|
|
21
|
+
lines.markersize : 4
|
|
22
|
+
lines.markeredgewidth : 0.8
|
|
23
|
+
errorbar.capsize : 2
|
|
24
|
+
patch.linewidth : 0.8
|
|
25
|
+
|
|
26
|
+
## ---- Fonts ----------------------------------------------------------
|
|
27
|
+
font.family : sans-serif
|
|
28
|
+
font.sans-serif : Arial, Helvetica, Nimbus Sans, DejaVu Sans
|
|
29
|
+
font.size : 7 # Nature asks for 5-7 pt final lettering
|
|
30
|
+
mathtext.fontset : dejavusans # sans-serif maths without LaTeX
|
|
31
|
+
|
|
32
|
+
# Full LaTeX text rendering (needs a working LaTeX installation).
|
|
33
|
+
# Uncomment below, or call plotastro.set_style("natastro", usetex=True).
|
|
34
|
+
#text.usetex : True
|
|
35
|
+
#text.latex.preamble : \usepackage{helvet}\usepackage{sansmath}\sansmath\renewcommand{\familydefault}{\sfdefault}
|
|
36
|
+
|
|
37
|
+
## ---- Axes -----------------------------------------------------------
|
|
38
|
+
axes.linewidth : 0.6
|
|
39
|
+
axes.labelsize : medium
|
|
40
|
+
axes.titlesize : medium
|
|
41
|
+
axes.labelpad : 3
|
|
42
|
+
axes.axisbelow : True # grid behind the data
|
|
43
|
+
axes.formatter.use_mathtext: True
|
|
44
|
+
axes.xmargin : 0.03
|
|
45
|
+
axes.ymargin : 0.05
|
|
46
|
+
|
|
47
|
+
# Colour-blind-friendly colour cycle (see README, "The colour palette")
|
|
48
|
+
axes.prop_cycle : cycler('color', ['377eb8', 'ff7f00', '4daf4a', 'f781bf', 'a65628', '984ea3', '999999', 'e41a1c', 'dede00', 'a2c8ec', 'ffbc79', 'ababab'])
|
|
49
|
+
|
|
50
|
+
## ---- Grid (subtle; set axes.grid: False to disable) -----------------
|
|
51
|
+
axes.grid : True
|
|
52
|
+
grid.linewidth : 0.4
|
|
53
|
+
grid.alpha : 0.25
|
|
54
|
+
|
|
55
|
+
## ---- Ticks: all four sides, pointing in, with minors ----------------
|
|
56
|
+
xtick.direction : in
|
|
57
|
+
xtick.top : True
|
|
58
|
+
xtick.bottom : True
|
|
59
|
+
xtick.minor.visible : True
|
|
60
|
+
xtick.major.size : 3.5
|
|
61
|
+
xtick.minor.size : 2
|
|
62
|
+
xtick.major.width : 0.6
|
|
63
|
+
xtick.minor.width : 0.4
|
|
64
|
+
xtick.labelsize : small # ~1 pt below the base font size
|
|
65
|
+
|
|
66
|
+
ytick.direction : in
|
|
67
|
+
ytick.left : True
|
|
68
|
+
ytick.right : True
|
|
69
|
+
ytick.minor.visible : True
|
|
70
|
+
ytick.major.size : 3.5
|
|
71
|
+
ytick.minor.size : 2
|
|
72
|
+
ytick.major.width : 0.6
|
|
73
|
+
ytick.minor.width : 0.4
|
|
74
|
+
ytick.labelsize : small
|
|
75
|
+
|
|
76
|
+
## ---- Legend ---------------------------------------------------------
|
|
77
|
+
legend.fontsize : small
|
|
78
|
+
legend.title_fontsize : small
|
|
79
|
+
legend.frameon : False
|
|
80
|
+
legend.handlelength : 1.8
|
|
81
|
+
legend.handletextpad : 0.5
|
|
82
|
+
legend.labelspacing : 0.3
|
|
83
|
+
legend.columnspacing : 1.2
|
|
84
|
+
legend.borderaxespad : 0.4
|
|
85
|
+
|
|
86
|
+
## ---- Figure ---------------------------------------------------------
|
|
87
|
+
figure.figsize : 3.5039, 2.1656 # one column, golden ratio
|
|
88
|
+
figure.dpi : 150 # on-screen / notebook display
|
|
89
|
+
figure.titlesize : medium
|
|
90
|
+
figure.constrained_layout.use : True # no cut-off labels
|
|
91
|
+
|
|
92
|
+
## ---- Images ---------------------------------------------------------
|
|
93
|
+
image.cmap : viridis
|
|
94
|
+
#image.origin : lower # uncomment for the astro image convention
|
|
95
|
+
|
|
96
|
+
## ---- Saving ---------------------------------------------------------
|
|
97
|
+
savefig.format : pdf # journals prefer vector formats
|
|
98
|
+
savefig.dpi : 450 # comfortably above journal raster minimums
|
|
99
|
+
savefig.bbox : tight
|
|
100
|
+
savefig.pad_inches : 0.02
|
|
101
|
+
pdf.fonttype : 42 # embed TrueType fonts (no Type-3)
|
|
102
|
+
ps.fonttype : 42
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# =====================================================================
|
|
2
|
+
# oja.mplstyle — The Open Journal of Astrophysics
|
|
3
|
+
#
|
|
4
|
+
# Figure widths:
|
|
5
|
+
# one column : ~245.27 pt = 3.39 in
|
|
6
|
+
# full width : ~508.00 pt = 7.03 in
|
|
7
|
+
# (OJA's two-column template is emulateapj-like; measure
|
|
8
|
+
# \the\columnwidth in your own build for exact numbers)
|
|
9
|
+
# The default figsize below is one column wide with a golden-ratio
|
|
10
|
+
# height. For other sizes use plotastro.figsize() / plotastro.subplots().
|
|
11
|
+
#
|
|
12
|
+
# Colours: colour-blind-friendly cycle — see the README for details.
|
|
13
|
+
# Generated by tools/generate_styles.py — edit that, not this file.
|
|
14
|
+
#
|
|
15
|
+
# Usage: import plotastro; plotastro.set_style("oja")
|
|
16
|
+
# or: import plotastro; plt.style.use("oja")
|
|
17
|
+
# =====================================================================
|
|
18
|
+
|
|
19
|
+
## ---- Lines & markers ------------------------------------------------
|
|
20
|
+
lines.linewidth : 1.2
|
|
21
|
+
lines.markersize : 4
|
|
22
|
+
lines.markeredgewidth : 0.8
|
|
23
|
+
errorbar.capsize : 2
|
|
24
|
+
patch.linewidth : 0.8
|
|
25
|
+
|
|
26
|
+
## ---- Fonts ----------------------------------------------------------
|
|
27
|
+
font.family : serif
|
|
28
|
+
font.serif : Times New Roman, Times, Nimbus Roman, STIXGeneral, DejaVu Serif
|
|
29
|
+
font.size : 9
|
|
30
|
+
mathtext.fontset : stix # Times-compatible maths without LaTeX
|
|
31
|
+
|
|
32
|
+
# Full LaTeX text rendering (needs a working LaTeX installation).
|
|
33
|
+
# Uncomment below, or call plotastro.set_style("oja", usetex=True).
|
|
34
|
+
#text.usetex : True
|
|
35
|
+
#text.latex.preamble : \usepackage{newtxtext}\usepackage{newtxmath}
|
|
36
|
+
|
|
37
|
+
## ---- Axes -----------------------------------------------------------
|
|
38
|
+
axes.linewidth : 0.6
|
|
39
|
+
axes.labelsize : medium
|
|
40
|
+
axes.titlesize : medium
|
|
41
|
+
axes.labelpad : 3
|
|
42
|
+
axes.axisbelow : True # grid behind the data
|
|
43
|
+
axes.formatter.use_mathtext: True
|
|
44
|
+
axes.xmargin : 0.03
|
|
45
|
+
axes.ymargin : 0.05
|
|
46
|
+
|
|
47
|
+
# Colour-blind-friendly colour cycle (see README, "The colour palette")
|
|
48
|
+
axes.prop_cycle : cycler('color', ['377eb8', 'ff7f00', '4daf4a', 'f781bf', 'a65628', '984ea3', '999999', 'e41a1c', 'dede00', 'a2c8ec', 'ffbc79', 'ababab'])
|
|
49
|
+
|
|
50
|
+
## ---- Grid (subtle; set axes.grid: False to disable) -----------------
|
|
51
|
+
axes.grid : True
|
|
52
|
+
grid.linewidth : 0.4
|
|
53
|
+
grid.alpha : 0.25
|
|
54
|
+
|
|
55
|
+
## ---- Ticks: all four sides, pointing in, with minors ----------------
|
|
56
|
+
xtick.direction : in
|
|
57
|
+
xtick.top : True
|
|
58
|
+
xtick.bottom : True
|
|
59
|
+
xtick.minor.visible : True
|
|
60
|
+
xtick.major.size : 3.5
|
|
61
|
+
xtick.minor.size : 2
|
|
62
|
+
xtick.major.width : 0.6
|
|
63
|
+
xtick.minor.width : 0.4
|
|
64
|
+
xtick.labelsize : small # ~1 pt below the base font size
|
|
65
|
+
|
|
66
|
+
ytick.direction : in
|
|
67
|
+
ytick.left : True
|
|
68
|
+
ytick.right : True
|
|
69
|
+
ytick.minor.visible : True
|
|
70
|
+
ytick.major.size : 3.5
|
|
71
|
+
ytick.minor.size : 2
|
|
72
|
+
ytick.major.width : 0.6
|
|
73
|
+
ytick.minor.width : 0.4
|
|
74
|
+
ytick.labelsize : small
|
|
75
|
+
|
|
76
|
+
## ---- Legend ---------------------------------------------------------
|
|
77
|
+
legend.fontsize : small
|
|
78
|
+
legend.title_fontsize : small
|
|
79
|
+
legend.frameon : False
|
|
80
|
+
legend.handlelength : 1.8
|
|
81
|
+
legend.handletextpad : 0.5
|
|
82
|
+
legend.labelspacing : 0.3
|
|
83
|
+
legend.columnspacing : 1.2
|
|
84
|
+
legend.borderaxespad : 0.4
|
|
85
|
+
|
|
86
|
+
## ---- Figure ---------------------------------------------------------
|
|
87
|
+
figure.figsize : 3.3937, 2.0975 # one column, golden ratio
|
|
88
|
+
figure.dpi : 150 # on-screen / notebook display
|
|
89
|
+
figure.titlesize : medium
|
|
90
|
+
figure.constrained_layout.use : True # no cut-off labels
|
|
91
|
+
|
|
92
|
+
## ---- Images ---------------------------------------------------------
|
|
93
|
+
image.cmap : viridis
|
|
94
|
+
#image.origin : lower # uncomment for the astro image convention
|
|
95
|
+
|
|
96
|
+
## ---- Saving ---------------------------------------------------------
|
|
97
|
+
savefig.format : pdf # journals prefer vector formats
|
|
98
|
+
savefig.dpi : 450 # comfortably above journal raster minimums
|
|
99
|
+
savefig.bbox : tight
|
|
100
|
+
savefig.pad_inches : 0.02
|
|
101
|
+
pdf.fonttype : 42 # embed TrueType fonts (no Type-3)
|
|
102
|
+
ps.fonttype : 42
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# =====================================================================
|
|
2
|
+
# prd.mplstyle — Physical Review D (REVTeX 4.2 two-column)
|
|
3
|
+
#
|
|
4
|
+
# Figure widths:
|
|
5
|
+
# one column : 246.00 pt = 3.40 in
|
|
6
|
+
# full width : 510.00 pt = 7.06 in
|
|
7
|
+
# (from the revtex4-2 class; PRL uses the same layout)
|
|
8
|
+
# The default figsize below is one column wide with a golden-ratio
|
|
9
|
+
# height. For other sizes use plotastro.figsize() / plotastro.subplots().
|
|
10
|
+
#
|
|
11
|
+
# Colours: colour-blind-friendly cycle — see the README for details.
|
|
12
|
+
# Generated by tools/generate_styles.py — edit that, not this file.
|
|
13
|
+
#
|
|
14
|
+
# Usage: import plotastro; plotastro.set_style("prd")
|
|
15
|
+
# or: import plotastro; plt.style.use("prd")
|
|
16
|
+
# =====================================================================
|
|
17
|
+
|
|
18
|
+
## ---- Lines & markers ------------------------------------------------
|
|
19
|
+
lines.linewidth : 1.2
|
|
20
|
+
lines.markersize : 4
|
|
21
|
+
lines.markeredgewidth : 0.8
|
|
22
|
+
errorbar.capsize : 2
|
|
23
|
+
patch.linewidth : 0.8
|
|
24
|
+
|
|
25
|
+
## ---- Fonts ----------------------------------------------------------
|
|
26
|
+
font.family : serif
|
|
27
|
+
font.serif : Times New Roman, Times, Nimbus Roman, STIXGeneral, DejaVu Serif
|
|
28
|
+
font.size : 9
|
|
29
|
+
mathtext.fontset : stix # Times-compatible maths without LaTeX
|
|
30
|
+
|
|
31
|
+
# Full LaTeX text rendering (needs a working LaTeX installation).
|
|
32
|
+
# Uncomment below, or call plotastro.set_style("prd", usetex=True).
|
|
33
|
+
#text.usetex : True
|
|
34
|
+
#text.latex.preamble : \usepackage{newtxtext}\usepackage{newtxmath}
|
|
35
|
+
|
|
36
|
+
## ---- Axes -----------------------------------------------------------
|
|
37
|
+
axes.linewidth : 0.6
|
|
38
|
+
axes.labelsize : medium
|
|
39
|
+
axes.titlesize : medium
|
|
40
|
+
axes.labelpad : 3
|
|
41
|
+
axes.axisbelow : True # grid behind the data
|
|
42
|
+
axes.formatter.use_mathtext: True
|
|
43
|
+
axes.xmargin : 0.03
|
|
44
|
+
axes.ymargin : 0.05
|
|
45
|
+
|
|
46
|
+
# Colour-blind-friendly colour cycle (see README, "The colour palette")
|
|
47
|
+
axes.prop_cycle : cycler('color', ['377eb8', 'ff7f00', '4daf4a', 'f781bf', 'a65628', '984ea3', '999999', 'e41a1c', 'dede00', 'a2c8ec', 'ffbc79', 'ababab'])
|
|
48
|
+
|
|
49
|
+
## ---- Grid (subtle; set axes.grid: False to disable) -----------------
|
|
50
|
+
axes.grid : True
|
|
51
|
+
grid.linewidth : 0.4
|
|
52
|
+
grid.alpha : 0.25
|
|
53
|
+
|
|
54
|
+
## ---- Ticks: all four sides, pointing in, with minors ----------------
|
|
55
|
+
xtick.direction : in
|
|
56
|
+
xtick.top : True
|
|
57
|
+
xtick.bottom : True
|
|
58
|
+
xtick.minor.visible : True
|
|
59
|
+
xtick.major.size : 3.5
|
|
60
|
+
xtick.minor.size : 2
|
|
61
|
+
xtick.major.width : 0.6
|
|
62
|
+
xtick.minor.width : 0.4
|
|
63
|
+
xtick.labelsize : small # ~1 pt below the base font size
|
|
64
|
+
|
|
65
|
+
ytick.direction : in
|
|
66
|
+
ytick.left : True
|
|
67
|
+
ytick.right : True
|
|
68
|
+
ytick.minor.visible : True
|
|
69
|
+
ytick.major.size : 3.5
|
|
70
|
+
ytick.minor.size : 2
|
|
71
|
+
ytick.major.width : 0.6
|
|
72
|
+
ytick.minor.width : 0.4
|
|
73
|
+
ytick.labelsize : small
|
|
74
|
+
|
|
75
|
+
## ---- Legend ---------------------------------------------------------
|
|
76
|
+
legend.fontsize : small
|
|
77
|
+
legend.title_fontsize : small
|
|
78
|
+
legend.frameon : False
|
|
79
|
+
legend.handlelength : 1.8
|
|
80
|
+
legend.handletextpad : 0.5
|
|
81
|
+
legend.labelspacing : 0.3
|
|
82
|
+
legend.columnspacing : 1.2
|
|
83
|
+
legend.borderaxespad : 0.4
|
|
84
|
+
|
|
85
|
+
## ---- Figure ---------------------------------------------------------
|
|
86
|
+
figure.figsize : 3.4039, 2.1037 # one column, golden ratio
|
|
87
|
+
figure.dpi : 150 # on-screen / notebook display
|
|
88
|
+
figure.titlesize : medium
|
|
89
|
+
figure.constrained_layout.use : True # no cut-off labels
|
|
90
|
+
|
|
91
|
+
## ---- Images ---------------------------------------------------------
|
|
92
|
+
image.cmap : viridis
|
|
93
|
+
#image.origin : lower # uncomment for the astro image convention
|
|
94
|
+
|
|
95
|
+
## ---- Saving ---------------------------------------------------------
|
|
96
|
+
savefig.format : pdf # journals prefer vector formats
|
|
97
|
+
savefig.dpi : 450 # comfortably above journal raster minimums
|
|
98
|
+
savefig.bbox : tight
|
|
99
|
+
savefig.pad_inches : 0.02
|
|
100
|
+
pdf.fonttype : 42 # embed TrueType fonts (no Type-3)
|
|
101
|
+
ps.fonttype : 42
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# =====================================================================
|
|
2
|
+
# rasti.mplstyle — RAS Techniques and Instruments (RASTI)
|
|
3
|
+
#
|
|
4
|
+
# Figure widths:
|
|
5
|
+
# one column : 240.00 pt = 3.32 in
|
|
6
|
+
# full width : 504.00 pt = 6.97 in
|
|
7
|
+
# (RASTI uses the MNRAS-family LaTeX class)
|
|
8
|
+
# The default figsize below is one column wide with a golden-ratio
|
|
9
|
+
# height. For other sizes use plotastro.figsize() / plotastro.subplots().
|
|
10
|
+
#
|
|
11
|
+
# Colours: colour-blind-friendly cycle — see the README for details.
|
|
12
|
+
# Generated by tools/generate_styles.py — edit that, not this file.
|
|
13
|
+
#
|
|
14
|
+
# Usage: import plotastro; plotastro.set_style("rasti")
|
|
15
|
+
# or: import plotastro; plt.style.use("rasti")
|
|
16
|
+
# =====================================================================
|
|
17
|
+
|
|
18
|
+
## ---- Lines & markers ------------------------------------------------
|
|
19
|
+
lines.linewidth : 1.2
|
|
20
|
+
lines.markersize : 4
|
|
21
|
+
lines.markeredgewidth : 0.8
|
|
22
|
+
errorbar.capsize : 2
|
|
23
|
+
patch.linewidth : 0.8
|
|
24
|
+
|
|
25
|
+
## ---- Fonts ----------------------------------------------------------
|
|
26
|
+
font.family : serif
|
|
27
|
+
font.serif : Times New Roman, Times, Nimbus Roman, STIXGeneral, DejaVu Serif
|
|
28
|
+
font.size : 9
|
|
29
|
+
mathtext.fontset : stix # Times-compatible maths without LaTeX
|
|
30
|
+
|
|
31
|
+
# Full LaTeX text rendering (needs a working LaTeX installation).
|
|
32
|
+
# Uncomment below, or call plotastro.set_style("rasti", usetex=True).
|
|
33
|
+
#text.usetex : True
|
|
34
|
+
#text.latex.preamble : \usepackage{newtxtext}\usepackage{newtxmath}
|
|
35
|
+
|
|
36
|
+
## ---- Axes -----------------------------------------------------------
|
|
37
|
+
axes.linewidth : 0.6
|
|
38
|
+
axes.labelsize : medium
|
|
39
|
+
axes.titlesize : medium
|
|
40
|
+
axes.labelpad : 3
|
|
41
|
+
axes.axisbelow : True # grid behind the data
|
|
42
|
+
axes.formatter.use_mathtext: True
|
|
43
|
+
axes.xmargin : 0.03
|
|
44
|
+
axes.ymargin : 0.05
|
|
45
|
+
|
|
46
|
+
# Colour-blind-friendly colour cycle (see README, "The colour palette")
|
|
47
|
+
axes.prop_cycle : cycler('color', ['377eb8', 'ff7f00', '4daf4a', 'f781bf', 'a65628', '984ea3', '999999', 'e41a1c', 'dede00', 'a2c8ec', 'ffbc79', 'ababab'])
|
|
48
|
+
|
|
49
|
+
## ---- Grid (subtle; set axes.grid: False to disable) -----------------
|
|
50
|
+
axes.grid : True
|
|
51
|
+
grid.linewidth : 0.4
|
|
52
|
+
grid.alpha : 0.25
|
|
53
|
+
|
|
54
|
+
## ---- Ticks: all four sides, pointing in, with minors ----------------
|
|
55
|
+
xtick.direction : in
|
|
56
|
+
xtick.top : True
|
|
57
|
+
xtick.bottom : True
|
|
58
|
+
xtick.minor.visible : True
|
|
59
|
+
xtick.major.size : 3.5
|
|
60
|
+
xtick.minor.size : 2
|
|
61
|
+
xtick.major.width : 0.6
|
|
62
|
+
xtick.minor.width : 0.4
|
|
63
|
+
xtick.labelsize : small # ~1 pt below the base font size
|
|
64
|
+
|
|
65
|
+
ytick.direction : in
|
|
66
|
+
ytick.left : True
|
|
67
|
+
ytick.right : True
|
|
68
|
+
ytick.minor.visible : True
|
|
69
|
+
ytick.major.size : 3.5
|
|
70
|
+
ytick.minor.size : 2
|
|
71
|
+
ytick.major.width : 0.6
|
|
72
|
+
ytick.minor.width : 0.4
|
|
73
|
+
ytick.labelsize : small
|
|
74
|
+
|
|
75
|
+
## ---- Legend ---------------------------------------------------------
|
|
76
|
+
legend.fontsize : small
|
|
77
|
+
legend.title_fontsize : small
|
|
78
|
+
legend.frameon : False
|
|
79
|
+
legend.handlelength : 1.8
|
|
80
|
+
legend.handletextpad : 0.5
|
|
81
|
+
legend.labelspacing : 0.3
|
|
82
|
+
legend.columnspacing : 1.2
|
|
83
|
+
legend.borderaxespad : 0.4
|
|
84
|
+
|
|
85
|
+
## ---- Figure ---------------------------------------------------------
|
|
86
|
+
figure.figsize : 3.3209, 2.0524 # one column, golden ratio
|
|
87
|
+
figure.dpi : 150 # on-screen / notebook display
|
|
88
|
+
figure.titlesize : medium
|
|
89
|
+
figure.constrained_layout.use : True # no cut-off labels
|
|
90
|
+
|
|
91
|
+
## ---- Images ---------------------------------------------------------
|
|
92
|
+
image.cmap : viridis
|
|
93
|
+
#image.origin : lower # uncomment for the astro image convention
|
|
94
|
+
|
|
95
|
+
## ---- Saving ---------------------------------------------------------
|
|
96
|
+
savefig.format : pdf # journals prefer vector formats
|
|
97
|
+
savefig.dpi : 450 # comfortably above journal raster minimums
|
|
98
|
+
savefig.bbox : tight
|
|
99
|
+
savefig.pad_inches : 0.02
|
|
100
|
+
pdf.fonttype : 42 # embed TrueType fonts (no Type-3)
|
|
101
|
+
ps.fonttype : 42
|