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
#Text elements--------------------------------------------- | |
#Title format | |
mpl.rcParams["figure.titlesize"] = 22 | |
mpl.rcParams["figure.titleweight"] = "regular" | |
#Subtitle format | |
mpl.rcParams["axes.titlesize"] = 18 | |
mpl.rcParams["axes.titlelocation"]="left" | |
mpl.rcParams['axes.titleweight'] = "regular" | |
mpl.rcParams['axes.titlecolor']= '#7F7F7F' |
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
#Data to plot: | |
x=np.linspace(1,12,12) | |
y=[341,657,424,363,123,544,176,566,737,861,651,719] | |
#Canvas | |
fig,ax = plt.subplots(1,1,figsize=(13,7.5),dpi=100) | |
#Chart | |
ax.plot(x,y) |
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 as mpl | |
#Remove all axis | |
mpl.rcParams["axes.spines.bottom"] = True | |
mpl.rcParams["axes.spines.left"] = False | |
mpl.rcParams["axes.spines.right"] = False | |
mpl.rcParams["axes.spines.top"] = False | |
#Grid format | |
mpl.rcParams["axes.grid"] = True |
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.pyplot as plt | |
style_list = ['default', 'classic'] + | |
sorted(style for style in plt.style.available if style != 'classic') | |
plt.style.use(style_list[2]) |
NewerOlder