Skip to content
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

transAxes isn't working properly with scale='log' #1249

Closed
pelson opened this issue Sep 14, 2012 · 2 comments
Closed

transAxes isn't working properly with scale='log' #1249

pelson opened this issue Sep 14, 2012 · 2 comments
Assignees
Milestone

Comments

@pelson
Copy link
Member

pelson commented Sep 14, 2012

Easy to reproduce:

import matplotlib.pyplot as plt
import matplotlib.transforms as mtrans

ax = plt.subplot(122, xscale='log')
t = mtrans.BlendedGenericTransform(ax.transData, ax.transAxes)
plt.plot(50, 0.5, 'ob', transform=t)
plt.show()

Manually resize the window, the point should stay in the middle of the axes, but stays static, as if the values given were in device coordinates.

Likely to be down to a caching issue. Related to #1247. Almost certainly caused by me.

@ghost ghost assigned pelson Sep 14, 2012
@pelson
Copy link
Member Author

pelson commented Sep 14, 2012

Note: Fixed if the recache method were called by the line's draw method every time (this is equivalent to what used to happen, before I fixed it in #723).

@pelson
Copy link
Member Author

pelson commented Sep 17, 2012

Fixed in #1246.

@mdboom mdboom closed this as completed Sep 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants