Skip to content

Display z value in matshow in addition of x, y. #3146

Closed

Description

@PhML

When displaying an image with matshow, the values x,y of the cursor position is displayed. It would be useful to also display the value of the array at this position (tuple for RGB image with imshow).

Activity

  1. tacaswell commented on Jun 24, 2014

    @tacaswell
    Member

    Closing as a duplicate of #2477 .

  2. added this to the milestone on Jun 24, 2014
  3. tacaswell commented on Jun 24, 2014

    @tacaswell
    Member

    Changed my mind, tagged for 1.5.x

  4. PhML commented on Jun 24, 2014

    @PhML
    Author

    Sorry for the duplicate, I didn't find it. But can you explain what changed your mind between January and now?

  5. tacaswell commented on Jun 24, 2014

    @tacaswell
    Member

    I changed my mind about how hard it would be to write something bullet proof to make this work. The complication is that imshow (and iirc matshow is just imshow with the origin defaulting to the bottom instead of the top) takes both scalar data to be color mapped and RBG(A) data to just be displayed and can take the extent kwarg. All of the various permutations of those things would need to be dealt with gracefully.

    One issue that @WeatherGod brought up in the other thread is that you can call imshow multiple times, presumably you want the cursor to show you the value for the 'correct' image as you mouse around the axes. To get that to work you now need each call to imshow to know about the existing images on the axes and update the call back. I think getting that right will be the biggest problem.

    There is also a some-what related issue with re-doing how the call back stack works to display the (x,y) for stacked axes (see discussion at #2986 ).

  6. tacaswell commented on Jul 16, 2015

    @tacaswell
    Member

    This has been taken care of by #3989

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions