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

Feature Request: Data Cursor Mode #2965

Closed
jeremy-patterson1 opened this issue Apr 10, 2014 · 8 comments
Closed

Feature Request: Data Cursor Mode #2965

jeremy-patterson1 opened this issue Apr 10, 2014 · 8 comments
Milestone

Comments

@jeremy-patterson1
Copy link

It would really help my plotting to have a DataCursorMode button on the toolbar.

A coded example is located here:
http://stackoverflow.com/questions/4652439/is-there-a-matplotlib-equivalent-of-matlabs-datacursormode

It would be nice if the user could drag the box to different corners around the point of interest and use the keyboard to move the datacursor onto the next data dot.

@tacaswell tacaswell added this to the v1.5.x milestone Apr 10, 2014
@tacaswell
Copy link
Member

There in work under way (MEP22 iirc) to make it easier to configure the toolbar. This would make it possible for third party tools (ilke @joferkington 's wonderful module) to be plugged in.

Tagging for 1.5 as something like this is too big to get in before 1.4.

@jeremy-patterson1
Copy link
Author

Although configuring the toolbar would be nice, I would be satisfied if
this functionality was added to the default toolbar.

Jeremy Patterson

On Wed, Apr 9, 2014 at 5:52 PM, Thomas A Caswell
notifications@github.comwrote:

There in work under way (MEP22 iirc) to make it easier to configure the
toolbar. This would make it possible for third party tools (ilke
@joferkington https://github.com/joferkington 's wonderful module) to
be plugged in.

Tagging for 1.5 as something like this is too big to get in before 1.4.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2965#issuecomment-40032976
.

@tacaswell
Copy link
Member

We can not add an import of data-cursor-mode in the matplotlib source (as it presumably imports matplotlib) and circular dependencies are resolved by one of the least helpful exceptions I have seen python raise. Unless Joe want's to merge his project into the main line, there is not much we can do aside from making the toolbar plug-able.

@jeremy-patterson1
Copy link
Author

I'll ask him
On Apr 10, 2014 5:53 PM, "Thomas A Caswell" notifications@github.com
wrote:

We can not add an import of data-cursor-mode in the matplotlib source (as
it presumably imports matplotlib) and circular dependencies are resolved by
one of the least helpful exceptions I have seen python raise. Unless Joe
want's to merge his project into the main line, there is not much we can do
aside from making the toolbar plug-able.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2965#issuecomment-40161137
.

@pelson
Copy link
Member

pelson commented Apr 14, 2014

Unless Joe want's to merge his project into the main line, there is not much we can do aside from making the toolbar plug-able.

I'm quite content having @joferkington's well implemented data cursor module outside of matplotlib. It gives much more freedom for it to move at a different release pace to mpl and should a simple install procedure via pip. Adding the functionality to the toolbar should be possible via some hook, which I'm much more keen to explore in mpl.

Just my 2c.

@joferkington
Copy link
Contributor

While I'd be happy to have mpldatacursor merged in, I agree with @pelson on this one. I don't think it's the right thing to do at the moment. The project is still relatively immature, and therefore flexibility is a very good thing.

However, that having been said, it's easier for end-users if it is merged in (assuming folks think it's a common enough use case). I'm certainly not opposed to it in the long run.

Regardless, as soon as the toolbar enhancements (MEP22) get merged in, I'll certainly use them in mpldatacursor.

Thanks for the kind words!

@tacaswell
Copy link
Member

Closing this as the consensus seems to be it is better to keep mplcursor separate for the near future.

@K2LEEKorea
Copy link

Based on mpl example cursor_demo.html and custom_boxstyle01.html, we can make similar features like this without javascript
mpl_cursor_cross_line_v27_SnaptoCursor_GD_all_around

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

5 participants