Ask Your Question
1

high resolution image - matplotlib

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

mresimulator gravatar image

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

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
1

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

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:

http://matplotlib.org/api/figure_api.html

edit flag offensive delete link more
1

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

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
1

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

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
0

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

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

Stats

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

Seen: 3,527 times

Last updated: Jul 19 '13