Ask Your Question

Revision history [back]

click to hide/show revision 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")

On that you should be able to call save:"diagram.png")"diagram.pdf")