Skip to content

Add image value to x=, y= cursor text. #2477

Closed

Description

@BenFrantzDale

In Matlab, imshow pets you see the data value under the mouse cursor. This would be helpful in Matplotlib. I'm thinking it would go at to bottom of the window where the mouse-position text is.

This seems like it should be easy to add. I'm just not sure where I need to look to add it. If someone can tell me where to look, I'll take a stab at it. Where is the code that does the x=, y= text?

Activity

  1. tonysyu commented on Sep 30, 2013

    @tonysyu
    Contributor
  2. BenFrantzDale commented on Sep 30, 2013

    @BenFrantzDale
    Author

    Thanks. Given that someone has already thought of this enough to make that page, is there a reason it's not the default behavior? That is, if I made a pull request that made that the default behavior is there a blanket reason it wouldn't be accepted?

  3. WeatherGod commented on Sep 30, 2013

    @WeatherGod
    Member

    No blanket reason, I don't think. I just think no one has spent enough time
    to gracefully implement it. I don't think that there is any philosophical
    objections. The feature would have to work regardless of the type of image
    (some images are specified strictly as rgb values obtained from reading an
    image), and it shouldn't be thrown off by having multiple images in the
    axes (should work with whatever is "on top").

  4. tacaswell commented on Sep 30, 2013

    @tacaswell
    Member

    You also have to be aware of the use of extent and all the subtleties it can introduce.

  5. pelson commented on Oct 10, 2013

    @pelson
    Member
  6. tacaswell commented on Jan 17, 2014

    @tacaswell
    Member

    Closing as won't fix as I think a general solution will be more complex that it is worth.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions