Created
January 29, 2026 14:16
-
-
Save cphyc/7b21244ef29035f3eb95db1b705764c2 to your computer and use it in GitHub Desktop.
One- and two columns matplotlib style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Suitable for a plot on a single column in a scientific journal | |
| # See also https://gitlab.cosma.dur.ac.uk/swift/swiftsim/-/blob/a28188b495d55101ab160f8220489dd1c6f30b21/tools/stylesheets/mnras.mplstyle | |
| figure.dpi: 300 | |
| # figure.figsize: 3.5555, 2.2 | |
| figure.figsize: 3.3333333333333335, 2.060113295832849 | |
| # Font - all in size 9 except for ticks | |
| font.size: 9 | |
| axes.titlesize: 9 | |
| axes.labelsize: 9 | |
| xtick.labelsize: 8 | |
| ytick.labelsize: 8 | |
| legend.fontsize: 9 | |
| # Linewidth | |
| lines.linewidth: 1 | |
| # Font - family | |
| font.family: STIXGeneral | |
| mathtext.fontset: stix | |
| # Hide top/right axes | |
| axes.spines.right: false | |
| axes.spines.top: false | |
| # Scatter plots | |
| scatter.marker: . | |
| # Use constrained layout by default | |
| figure.constrained_layout.use: true | |
| # Legend | |
| legend.edgecolor: none | |
| # Grid | |
| grid.linewidth: 0.5 | |
| # From https://gist.github.com/thriveth/8560036 | |
| axes.prop_cycle: cycler("color", ["#377eb8","#ff7f00", "#4daf4a", "#f781bf", "#a65628", "#984ea3", "#999999", "#e41a1c", "#dede00"]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Suitable for a plot on a two columns in a scientific journal | |
| # See also https://gitlab.cosma.dur.ac.uk/swift/swiftsim/-/blob/a28188b495d55101ab160f8220489dd1c6f30b21/tools/stylesheets/mnras.mplstyle | |
| figure.dpi: 300 | |
| figure.figsize: 7.0, 4.326237921248983 | |
| # Font - all in size 9 except for ticks | |
| font.size: 9 | |
| axes.titlesize: 9 | |
| axes.labelsize: 9 | |
| xtick.labelsize: 8 | |
| ytick.labelsize: 8 | |
| legend.fontsize: 9 | |
| # Linewidth | |
| lines.linewidth: 1 | |
| # Font - family | |
| font.family: STIXGeneral | |
| mathtext.fontset: stix | |
| # Hide top/right axes | |
| axes.spines.right: false | |
| axes.spines.top: false | |
| # Scatter plots | |
| scatter.marker: . | |
| # Use constrained layout by default | |
| figure.constrained_layout.use: true | |
| # Legend | |
| legend.edgecolor: none | |
| # Grid | |
| grid.linewidth: 0.5 | |
| # From https://gist.github.com/thriveth/8560036 | |
| axes.prop_cycle: cycler("color", ["#377eb8","#ff7f00", "#4daf4a", "#f781bf", "#a65628", "#984ea3", "#999999", "#e41a1c", "#dede00"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment