virexcr
Aug 24, 2019 - 23:00
Hi I’m trying to use matplotlib.pyplot to plot results from engineering calculations the documentation says that every call to pyplot should add a new curve to the plot until you call the show method to present the graphic. But when I try it in Pythonista it only plots the last call and the rest won’t be plotted.
Here is some test code from the documentation and this one won’t work either.
```
from matplotlib.pyplot import *
subplot(211)
plot([1,2,3], label="test1")
plot([3,2,1], label="test2")
legend(bbox_to_anchor=(0., 1.02, 1., .102), loc=3,
ncol=2, mode="expand", borderaxespad=0.)
subplot(223)
plot([1,2,3], label="test1")
plot([3,2,1], label="test2")
legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.)
show()