Ryan's Blog

Matplotlib: using scientific notation in tick values

Posted in Uncategorized by ryanlayer on January 8, 2015


formatter = matplotlib.ticker.ScalarFormatter()
formatter.set_powerlimits((-3,4))
ax.xaxis.set_major_formatter(formatter)

Tagged with: ,

Matplotlib: Set Font

Posted in Uncategorized by ryanlayer on April 22, 2014

from matplotlib import rcParams
rcParams['font.family'] = 'Arial'

Tagged with: ,