You are reading an old version of the documentation (v2.1.2). For the latest version see https://matplotlib.org/stable/gallery/pyplots/pyplot_formatstr.html
Version 2.1.2
matplotlib
Fork me on GitHub


Travis-CI:

Related Topics

This Page

Pyplot FormatstrΒΆ

../../_images/sphx_glr_pyplot_formatstr_001.png
import matplotlib.pyplot as plt
plt.plot([1,2,3,4], [1,4,9,16], 'ro')
plt.axis([0, 6, 0, 20])
plt.show()

Total running time of the script: ( 0 minutes 0.018 seconds)

Gallery generated by Sphinx-Gallery