Philipp Schrader | 7520ee6 | 2022-12-10 14:04:40 -0800 | [diff] [blame^] | 1 | # This is the introductory example from |
2 | # https://matplotlib.org/stable/tutorials/introductory/pyplot.html | ||||
3 | |||||
4 | import matplotlib | ||||
5 | import matplotlib.pyplot as plt | ||||
6 | |||||
7 | # Set up the gtk backend before running matplotlib. | ||||
8 | matplotlib.use("GTK3Agg") | ||||
9 | |||||
10 | plt.plot([1, 2, 3, 4]) | ||||
11 | plt.ylabel("some numbers") | ||||
12 | plt.show() |