Ask Your Question
1

high resolution image - matplotlib

asked 11 years ago

mresimulator gravatar image

updated 10 years ago

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!

Preview: (hide)

4 Answers

Sort by » oldest newest most voted
1

answered 11 years ago

Nathann gravatar image

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

sage: graphs.PetersenGraph().show(figsize=30)
Preview: (hide)
link
1

answered 11 years ago

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.

Preview: (hide)
link
1

answered 11 years ago

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

Preview: (hide)
link
0

answered 11 years ago

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.

Preview: (hide)
link

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: 11 years ago

Seen: 5,542 times

Last updated: Jul 19 '13