high resolution image - matplotlib
Hi experts!
How can i generate matplotlib graphs in custom resolution (for example: 1020p)?
waiting for your answers.
Thanks a lot!
Hi experts!
How can i generate matplotlib graphs in custom resolution (for example: 1020p)?
waiting for your answers.
Thanks a lot!
No idea. But you can still use the figsize argument to obtain a better definition
sage: graphs.PetersenGraph().show(figsize=30)
Go for a vector format, like svg or pdf, and then open in, say, Gimp. At the moment of opening, you can specify the resolution easily.
When you use savefig
, set the option dpi
to give the resolution in dots per inch.
See the documentation for savefig at:
You can refer to this online image processing tutorial to see the image resolution solutions, with the mature image resolution adjust methods.
Asked: 11 years ago
Seen: 5,542 times
Last updated: Jul 19 '13