December 2017
Intermediate to advanced
386 pages
10h 42m
English
In this code, we first create a new figure and set its size. Then, the tvalues, xvalues, and yvalues arrays are filled with the values to be displayed, which, in this case, represent a parametric plot of a cardioid. Finally, after the line plots and other plot elements are added, we issue the following function call:
plt.savefig('cardioid.png')
This will output the graph to the cardioid.png file, which is created if it does not exist.
The format of the output ...
Read now
Unlock full access