-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect savefig size when using size = ( , ) #2303
Comments
Thanks for reporting, this is really weird. |
Perhaps not surprisingly, the Just ran some tests with everything updated. I think the last step in my previous tests that gave the correct size might have been an error on my part, though I'm not sure.
The last two are a little strange (decreasing the height by 1px fixes the width). I get the same results on my laptop and desktop. Everything seems to be stored fine under the plot attributes If I systematically decrease one of the dimensions, say the height, I get
I don't see a pattern... |
Can you test that with a different backend? |
The above tests were with
|
Oh I forgot one more test with
|
Just sharing that this bug is still present. |
When I run this code, the saved image comes out as the incorrect size 799x800. If instead I do, for example,
I get images of correct size 600x600. While this isn't a big issue, I found that this has some problems with certain codecs when converting a sequence of images, say of size 799x800, to a movie (they require images with even dimensions).
EDIT: If I save as (500, 500), I get a 499x499 image. If I then do (501, 501), I still get 499x499. If I then do (502, 502), I get a 501x501 image. Finally, if I go back to (501, 501), it correctly saves a 501x501 image.
The text was updated successfully, but these errors were encountered: