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
Square plots #3742
Comments
the set_aspect() method has the "adjustable" parameter that allows values Cheers! On Thu, Oct 30, 2014 at 4:16 PM, Jesse Johnson notifications@github.com
|
No, he is asking for a way to automatically make the X and Y data limits the same, so that with adjustable 'box' and aspect 'equal', the result would be a square with identical min/max values for X and Y. |
Yes, what @efiring said. 😄 |
Ah, I should have read the code example. So really, this isn't so much an On Thu, Oct 30, 2014 at 5:57 PM, Jesse Johnson notifications@github.com
|
Closed by #4310 |
When using
pyplot
, I can useaxis('equal')
to make the axes have the same scale (a circle is a circle). However, this leaves a hole for the common case of comparing experiment with theory where a square plot is desired (i.e., the axes should have the same limits).To achieve this, I typically write a function:
Ideally something like this would be built into matplotlib. Maybe it already is and I missed it? If not, it would be a handy addition. Beats having everyone copy/paste the wheel - I must have seen it implemented over a hundred times.
The text was updated successfully, but these errors were encountered: