Skip to content

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

Closed

Description

@pelson

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.

Activity

  1. ghost assigned on Sep 14, 2012
  2. pelson commented on Sep 14, 2012

    @pelson
    MemberAuthor

    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).

  3. pelson commented on Sep 17, 2012

    @pelson
    MemberAuthor

    Fixed in #1246.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions