Last active
October 26, 2021 08:15
-
-
Save DavidAce/b4758cd1a2ad94f6739068a8c19f87f8 to your computer and use it in GitHub Desktop.
Matplotlib stylesheet for sharing on slack (wip)
This file contains 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
# This is a modified style based on seaborn-darkgrid | |
# Seaborn common parameters | |
# .15 = dark_gray | |
# .8 = light_gray | |
figure.facecolor : white | |
text.color : .15 | |
axes.labelcolor : .15 | |
xtick.direction : out | |
ytick.direction : out | |
xtick.color : .15 | |
ytick.color : .15 | |
axes.axisbelow : True | |
image.cmap : Greys | |
grid.linestyle : - | |
lines.solid_capstyle : round | |
# Seaborn darkgrid parameters | |
axes.grid : True | |
axes.facecolor : 0.9 | |
axes.edgecolor : white | |
axes.linewidth : 0 | |
grid.color : white | |
xtick.major.size : 0 | |
ytick.major.size : 0 | |
xtick.minor.size : 0 | |
ytick.minor.size : 0 | |
# Special sauce | |
# Read more about the stix font here https://tex.stackexchange.com/questions/452133/font-used-by-revtex | |
axes.titlesize : small # Font size of subtplot title | |
text.usetex : true | |
font.size : 11 | |
font.family : serif | |
font.serif : STIX | |
mathtext.fontset : stix | |
lines.linewidth : 1.2 | |
lines.markersize : 5 | |
## The figure subplot parameters. All dimensions are a fraction of the figure width and height. | |
figure.subplot.top : 0.90 # the top of the subplots of the figure (Make room for title and subtitle) | |
figure.subplot.left : 0.20 | |
figure.subplot.bottom : 0.15 | |
## Dimensions as fraction of font size: | |
legend.fontsize : 8.33 | |
legend.title_fontsize : 8.33 | |
legend.frameon : False # if True, draw the legend on a background patch | |
legend.loc : center left | |
legend.borderpad : 0.25 # border whitespace | |
legend.labelspacing : 0.15 # the vertical space between the legend entries | |
legend.handlelength : 1.0 # the length of the legend lines | |
legend.handletextpad : 0.5 # the space between the legend line and legend text | |
legend.borderaxespad : 0.0 # the border between the axes and legend edge | |
legend.columnspacing : 0.5 # column separation | |
legend.framealpha : 0.7 # legend patch transparency | |
legend.facecolor : inherit # inherit from axes.facecolor; or color spec | |
legend.edgecolor : k # background patch boundary color | |
legend.fancybox : False # if True, use a rounded box for the | |
# legend background, else a rectangle | |
legend.shadow : False # if True, give background a shadow effect | |
legend.numpoints : 1 | |
legend.scatterpoints : 1 | |
# Defaults | |
#figure.subplot.top : 0.88 # the top of the subplots of the figure (Make room for title and subtitle) | |
#figure.subplot.left : 0.125 # the left side of the subplots of the figure | |
#figure.subplot.right : 0.9 # the right side of the subplots of the figure | |
#figure.subplot.bottom : 0.11 # the bottom 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.2 # the amount of height reserved for space between subplots, | |
# expressed as a fraction of the average axis height | |
figure.autolayout : False # Applies tight_layout | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment