Section Navigation
fill_between
plt.subplots
histtype
floating_axes
Note
Go to the endto download the full example code.
You can control the axis tick and grid properties
importmatplotlib.pyplotaspltimportnumpyasnpt=np.arange(0.0,2.0,0.01)s=np.sin(2*np.pi*t)fig,ax=plt.subplots()ax.plot(t,s)ax.grid(True,linestyle='-.')ax.tick_params(labelcolor='r',labelsize='medium',width=3)plt.show()
Tags:component: ticksplot-type: linelevel: beginner
DownloadJupyternotebook:axes_props.ipynb
DownloadPythonsourcecode:axes_props.py
Downloadzipped:axes_props.zip
Gallery generated by Sphinx-Gallery