编码规范 by @mdo.
转载自： Prettyplotlib: Painlessly create beautiful matplotlib plots
I truly believe that scientific progress is impeded when improper data visualizations are used. I spent a lot of time tweaking my figures to make them more understandable, and realize......
import numpy as np
import matplotlib.pyplot as plt
from numpy.random import randn
import matplotlib as mpl
mpl.rcParams['font.family'] = 'Helvetica Neue'
import prettyplotlib as ppl
from prettyplotlib import brewer2mpl