plottools.style.set¶
-
plottools.style.
set
(*style, **kwargs)[source]¶ Sets styles of a single axes object
Parameters: style : string or list of strings
style string, if a list is supplied all styles in the list are applied
axes : matplotlib axes object
the axes to which to apply the style, if omitted the current axis obtained with plt.gca() it styled
Examples
>>> import matplotlib.pyplot as plt >>> import numpy as np >>> import plottools >>> plt.plot(np.arange(10),10*np.random.random(10)) >>> plottools.style.set(['horizontalgrid','noxticks']) >>> plt.show()
(Source code, png, hires.png, pdf)