Skip to content

Instantly share code, notes, and snippets.

@BoZenKhaa
Created February 7, 2020 00:25
Show Gist options
  • Save BoZenKhaa/bf4088a9dee8f1cb5ce7e4157a4e94cd to your computer and use it in GitHub Desktop.
Save BoZenKhaa/bf4088a9dee8f1cb5ce7e4157a4e94cd to your computer and use it in GitHub Desktop.
Matplotlib
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