Pyplot Simple

A most simple plot, where a list of numbers is plotted against their index.

import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
pyplot simple


The use of the following functions, methods, classes and modules is shown in this example:


<function show at 0x7fedfeb48ca0>

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