Ask Your Question
1

high resolution image - matplotlib

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

mresimulator gravatar image

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

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

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
1

answered 2013-07-19 10:10:45 +0100

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

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
0

answered 2013-07-19 05:37:04 +0100

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

Seen: 5,365 times

Last updated: Jul 19 '13