Ask Your Question

high resolution image - matplotlib

asked 2013-07-09 05:08:23 -0600

mresimulator gravatar image

updated 2015-01-18 01:45:09 -0600

FrédéricC gravatar image

Hi experts!

How can i generate matplotlib graphs in custom resolution (for example: 1020p)?

waiting for your answers.

Thanks a lot!

edit retag flag offensive close merge delete

4 answers

Sort by » oldest newest most voted

answered 2013-07-10 15:06:41 -0600

calc314 gravatar image

When you use savefig, set the option dpi to give the resolution in dots per inch.

See the documentation for savefig at:

edit flag offensive delete link more

answered 2013-07-19 03:10:45 -0600

Jesustc gravatar image

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.

edit flag offensive delete link more

answered 2013-07-10 00:32:18 -0600

Nathann gravatar image

No idea. But you can still use the figsize argument to obtain a better definition

sage: graphs.PetersenGraph().show(figsize=30)
edit flag offensive delete link more

answered 2013-07-18 22:37:04 -0600

Wheatley gravatar image

You can refer to this online image processing tutorial to see the image resolution solutions, with the mature image resolution adjust methods.

edit remove flag flag offensive (1) delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-07-09 05:08:23 -0600

Seen: 4,403 times

Last updated: Jul 19 '13