June 2017
Intermediate to advanced
446 pages
10h 10m
English
For the following examples, the figures are displayed as standard output by default; it is easier if you try them out while on standard output. If you have been following along the book via a virtual machine, it is recommended that you use the VM Window instead of SSH. If you do not have access to the standard output, you can save the figure and view it after you download it (as you will see soon). Note that you will need to set the $DISPLAY variable in some of the following graphs.
A line plot graph simply gives two lists of numbers that correspond to the x axis and y axis values:
>>> import matplotlib.pyplot as plt>>> plt.plot([0,1,2,3,4], [0,10,20,30,40])[<matplotlib.lines.Line2D object at 0x7f932510df98>] ...
Read now
Unlock full access