plottools.set_publication_rc¶
-
plottools.
set_publication_rc
()[source]¶ Sets rc parameters for creating plots suitable for publication
Notes
The computer modern fonts are not installed by default on windows. But can be downloaded at https://sourceforge.net/projects/cm-unicode/ To use new installed fonts in matplotlib you must delete the font cache file located at C:Usersyourusername.matplotlib
Examples
>>> import matplotlib.pyplot as plt >>> import numpy as np >>> import plottools >>> >>> plottools.set_publication_rc() >>> plt.plot(np.arange(10),10*np.random.random(10)) >>> plt.xlabel('x-label') >>> plt.ylabel('y-label') >>> plt.show()
(Source code, png, hires.png, pdf)