Created
February 7, 2020 00:25
-
-
Save BoZenKhaa/bf4088a9dee8f1cb5ce7e4157a4e94cd to your computer and use it in GitHub Desktop.
Matplotlib
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
import matplotlib | |
import matplotlib.pyplot as plt | |
# Avoid Type2 fonts | |
matplotlib.rcParams['pdf.fonttype'] = 42 | |
matplotlib.rcParams['ps.fonttype'] = 42 | |
# Plots looking nice | |
plt.style.use('ggplot') # R-like plots | |
#Save nice plots | |
FIGSAVE_KWARGS = dict(bbox_inches='tight') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment