Saving a plot(png):\\ {\ex \lstinline| savefig('filename.png')|} Saving a plot(pdf):\\ {\ex \lstinline| savefig('filename.pdf')|}