plottools.style.horizontalgrid¶
-
plottools.style.
horizontalgrid
(axes=None)[source]¶ Sets a style with a horizontal grid to the axes
Parameters: 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.horizontalgrid() >>> plt.show()
(Source code, png, hires.png, pdf)