I can save a graphic I have created as a svg using the following command:
p.save('/home/so10b.svg')
However, my particular graphic is saved as a 39.5MB file, which is too large for my graphic editor to handle well. Saving as .ps creates a 20.4MB file.
In the end, I want a .png, but with particular printed dimensions and resolution. So:
What command will allow me to save a graphic in raster format with specific dimensions and resolution?