Created
February 27, 2020 15:16
-
-
Save pierdom/94ef26e6483466173374c3aabc41fcb4 to your computer and use it in GitHub Desktop.
[Typeform style for Matplotlib] #python #matplotlib #datascience #visualization #typeform
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
import matplotlib.pylab as plt | |
import seaborn as sns | |
import matplotlib | |
sns.set_style('whitegrid') | |
matplotlib.rcParams['figure.figsize'] = [9, 5] | |
matplotlib.rcParams['figure.facecolor'] = "#f2ece3" | |
matplotlib.rcParams['axes.facecolor'] = "#f2ece3" | |
matplotlib.rcParams['legend.facecolor'] = "#f2ece3" | |
matplotlib.rcParams['text.color'] = '#595959' | |
matplotlib.rcParams['grid.color'] = '#d9d9d9' | |
matplotlib.rcParams['axes.edgecolor'] = '#d9d9d9' | |
matplotlib.rcParams['figure.titlesize'] = 18 | |
matplotlib.rcParams['xtick.labelsize'] = 10 | |
matplotlib.rcParams['ytick.labelsize'] = 14 | |
matplotlib.rcParams['axes.labelsize'] = 14 | |
matplotlib.rcParams['axes.titlesize'] = 16 |
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
# Put the following in ~/.matplotlib/stylelib/typeform.mplstyle | |
#figure.figsize: (9.0, 5.0) | |
font.family : sans-serif | |
#font.sans-serif : Calibri | |
figure.titlesize : 18 | |
xtick.labelsize : 12 | |
ytick.labelsize : 12 | |
axes.labelsize : 14 | |
axes.titlesize : 16 | |
figure.facecolor : F2ECE3 | |
axes.facecolor : F2ECE3 | |
legend.facecolor : F2ECE3 | |
text.color : 595959 | |
grid.color : d9d9d9 | |
axes.edgecolor : d9d9d9 | |
axes.prop_cycle : cycler('color', ['137873', '43b2af', 'debb8e', 'c0000b', 'e49c2e']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment