Ask Your Question

high resolution image - matplotlib

asked 2013-07-09 12:08:23 +0200

mresimulator gravatar image

updated 2015-01-18 08:45:09 +0200

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 07:32:18 +0200

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-19 10:10:45 +0200

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 22:06:41 +0200

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 05:37:04 +0200

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 12:08:23 +0200

Seen: 5,178 times

Last updated: Jul 19 '13