Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

specify resolution of saved graphic

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?

click to hide/show revision 2
retagged

specify resolution of saved graphic

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?