-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
sharex or sharey with aspect=equal affects axis limits #7621
Comments
This is because you are trying to over-constrain the system. You essentially have the equations
which clearly can not be solved if |
@tacaswell Sorry, I can not fully understand your idea. About over-determined systems, as I remember they can have zero, one, or infinity number of solutions. Here as I see, the solution is: x_range=[0, 1]; y_range=[0, 1]; λ =1. But as I say I don't understand how does this situation relate with over-determined systems? I have |
@tacaswell Accoording to this issue #7654. If I use fig = plt.figure()
ax1 = fig.add_subplot(121, adjustable='box-forced', aspect='equal')
ax2 = fig.add_subplot(122, adjustable='box-forced', aspect='equal', sharey=ax1)
ax1.plot([.1, .5, .9], [.1, .5, .9], 'o')
ax2.plot([.1, .5, .9], [.1, .5, .9], 'o')
ax1.axis([0, 1, 0, 1])
ax2.axis([0, 1, 0, 1])
ax1.set_xticks([0, .2, .4, .6, .8, 1])
ax2.set_xticks([0, .2, .4, .6, .8, 1])
plt.show() |
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! |
When
aspect='equal'
andsharex
/sharey
are used together, they affect the axis limits, and I can not precisely set them.Also
sharex
andsharey
behaves differently. Above picture was forsharey
, below is forsharex
:When I use one of them everything looks fine, with
aspect=equal
, withoutshare
:without
aspect=equal
, withsharey
:Also the trouble is the same for
set_aspect
andaxis('equal')
.matplotlib 1.5.3.
python 3.5.2
The text was updated successfully, but these errors were encountered: