1 | initial version |
Calling "show" on a graphics object doesn't return anything, so in your example, g3 is None
, which explains the error. You can stuff the options into one of the plots:
plot1 = plot(-(x-1)^2+3, x, -3, 2.98, xmin=-2, xmax=10, ymin=-4, ymax=6,gridlines="minor")
...
g3=(plot1+plot2+plot3+pt1+pt2+pt3+pt4)
On that you should be able to call save:
g3.save("diagram.png")
g3.save("diagram.pdf")