Ask Your Question

Revision history [back]

There are two ways to go:

  • use show to make the png display in the default viewer
  • use save to save it to a file

Try with:

plot(f, -4, 4).show()
plot(f, -4, 4).save('plot_square_function.png')