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!
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: 2013-07-09 12:08:23 +0200
Seen: 5,835 times
Last updated: Jul 19 '13
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.