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

Related Topics

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()

Keywords: matplotlib code example, codex, python plot, pyplot Gallery generated by Sphinx-Gallery