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
aspect ratio is not handled correctly in combined plots #11963
Comments
comment:1
Notice:
So when you add p and q, the There are lots of different settings for plots, and they don't seem to be stored in consistent ways: some are in this |
comment:2
I am fine with overwriting settings - whatever is the aspect ratio for the combination is fine (or is a matter of taste). But when I explicitly set the aspect ratio to 1 after recombination and it does not work - it is a bug! |
comment:3
Oh, I agree that it's a bug. It just might be hard to fix, or at least to fix properly. |
comment:4
Thanks for diagnosing this, jhpalmieri. I think the attached patch takes care of the code changes. Some docs might need to be revised somewhere, though (like the aspect_ratio or set_aspect_ratio functions?), so I'm setting this as needs work. Anyone is welcome to help finish it! |
comment:7
How come I can't go from 'new defect' directly to 'needs work'? I thought I could before. |
Milestone sage-4.7.3 deleted |
comment:9
Attachment: trac-11963-fix-aspect-ratio.patch.gz I think I covered the bases, so setting this as 'needs review'. Karl-Dieter or someone else, do you want to review this? |
comment:10
Just FYI, I was testing this on a (slightly modified) 4.7.2.alpha3. |
comment:11
This fixes the problems I recently posted about on sage-devel, and works as advertised. Doctests and documentation are good. Positive review. |
Reviewer: Dan Drake |
Author: Jason Grout |
Merged: sage-4.8.alpha3 |
comment:13
I'm very, very unhappy with the impact of this patch. See #12213. |
comment:15
Please don't revert this; at least, test the solution up on #12213 first. This patch fixes a rather serious problem with graphics. |
Using 4.7.2.rc0, I get the following behaviour:
In 4.7.1 everything behaves as expected, i.e. the first plot is not round, but two others are.
It may be related to #2100. I tried to look into it, but I don't quite understand how and where
__aspect_ratio
is taken into account internally. Do you guys have any clue?CC: @kcrisman @jasongrout @sagetrac-ryan
Component: graphics
Author: Jason Grout
Reviewer: Dan Drake
Merged: sage-4.8.alpha3
Issue created by migration from https://trac.sagemath.org/ticket/11963
The text was updated successfully, but these errors were encountered: