-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Small figsize yield wrong dimensions #2716
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
Comments
I'm not seeing this.
|
I'm on windows 7, MPL 1.3.0 On Fri, Jan 10, 2014 at 8:10 PM, Eric Firing [email protected]:
|
Python 2.7.2 On Fri, Jan 10, 2014 at 8:13 PM, Ian Bell [email protected] wrote:
|
Which backend? I can't reproduce with mpl 1.3.0/python 2.7.2 with the Agg backend on Linux. |
This issue exists with WXAgg and WX backends, but Agg, TKAgg are fine. FWIW, the small fig sizes work fine with WXAgg on OSX with 1.2.1 On Jan 13, 2014, at 5:21 PM, Michael Droettboom [email protected] Which backend? I can't reproduce with mpl 1.3.0/python 2.7.2 with the Agg — |
There seems to be a lot of backend dependence here. Who is the local expert on Wx? |
I don't think we have one among the core, but @wernerfb might be the one to step in; he has been working on phoenix compatibility. |
Hi, This issue has been inactive for a while. Can anyone repro using the details provided above? Thanks! |
This is almost certainly due to the GUI maintaining some minimum size, (presumably for the toolbar?) Doing |
And I can reproduce this:
|
I find the same problem with the TkAgg backend:
Matplotlib version
|
I have had a look into this.
So, the problem is a direct result of making the canvas resizable, even though a specified size plus dpi would result in a fixed size.
Option 1) could be implemented for 2.2 |
For wx this one would be a possible workaround: Example, after creation of the frame: P.S.: On e.g. Ubuntu, the frame sizing does not work correctly. That's because in the The window as opened: |
Is there anything in the |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
I am having issues with small figures that I am trying to generate. Here is a minimal working example that demonstrates the issue:
which yields a file
small.png
with dimensions 291 x 50 (wxh) so the height is being properly handled, but the width is not. This seems to be a bug. I seem to recall having similar issues with large figures, I can post another mwe for large figsize too.The text was updated successfully, but these errors were encountered: