2

In python (under Ubuntu Linux), I'm using pylab to make plots.

When I call:

pylab.savefig(filename)

It saves the figure at the current screen resolution. The looks terrible if I have lots of subplots, so I usually have to manually maximize the window before I call 'savefig'.

Examples:

-- Without maximizing the window

-- With window maximized

Is there some way to automatically maximize a pylab window?

(I saw someone had posted a solution for Windows using win32gui, but I'm in Linux)

Thanks!

1 Answer 1

1

You can change resolution this way:

pylab.savefig('new.png', dpi = 500)
Sign up to request clarification or add additional context in comments.

1 Comment

That's useful to know, but it doesn't quite solve the problem. I'm going to add some image examples to my question

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.