New "data cursors for matplotlib" package: https://github.com/anntzer/mplcursors

Hi all,

I have written a new "data cursors for matplotlib" package, inspired from
@joferkington's mpldatacursor but rewritten from scratch, with a much
simpler API. Please have a look at https://github.com/anntzer/mplcursors .

I hope you'll like it.

Antony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160724/0234a827/attachment.html>

Hey, that is pretty slick! I especially like the decorator option to
connecting events to the cursor objects.

Kudos!

Ben Root

···

On Sun, Jul 24, 2016 at 8:41 PM, Antony Lee <antony.lee at berkeley.edu> wrote:

Hi all,

I have written a new "data cursors for matplotlib" package, inspired from
@joferkington's mpldatacursor but rewritten from scratch, with a much
simpler API. Please have a look at GitHub - anntzer/mplcursors: Interactive data selection cursors for Matplotlib.
.

I hope you'll like it.

Antony

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
Matplotlib-devel Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160728/837ad14e/attachment.html&gt;

2016-07-28 9:51 GMT-07:00 Benjamin Root <ben.v.root at gmail.com>:

Hey, that is pretty slick! I especially like the decorator option to
connecting events to the cursor objects.

This is a pretty common pattern nowadays, probably could be added to
matplotlib's event handling code itself.

Kudos!

Ben Root

Hi all,

I have written a new "data cursors for matplotlib" package, inspired from
@joferkington's mpldatacursor but rewritten from scratch, with a much
simpler API. Please have a look at GitHub - anntzer/mplcursors: Interactive data selection cursors for Matplotlib.
.

I hope you'll like it.

Antony

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
Matplotlib-devel Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160728/1c1748ec/attachment.html&gt;

···

On Sun, Jul 24, 2016 at 8:41 PM, Antony Lee <antony.lee at berkeley.edu> > wrote:

Hi

Super cool!

One idea. Why not add a simple tool (new ToolManager) to
activate/deactivate the mplcursors at will from the toolbar?
If you need help don't hesitate to contact me

If it does adapt well as a Tool we can talk about a PR to add it as a
standard tool.

Good job
Federico

2016-07-28 9:51 GMT-07:00 Benjamin Root <ben.v.root at gmail.com>:

Hey, that is pretty slick! I especially like the decorator option to
connecting events to the cursor objects.

This is a pretty common pattern nowadays, probably could be added to
matplotlib's event handling code itself.

···

On Jul 28, 2016 2:09 PM, "Antony Lee" <antony.lee at berkeley.edu> wrote:

Kudos!

Ben Root

On Sun, Jul 24, 2016 at 8:41 PM, Antony Lee <antony.lee at berkeley.edu> > wrote:

Hi all,

I have written a new "data cursors for matplotlib" package, inspired from
@joferkington's mpldatacursor but rewritten from scratch, with a much
simpler API. Please have a look at GitHub - anntzer/mplcursors: Interactive data selection cursors for Matplotlib.
.

I hope you'll like it.

Antony

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
Matplotlib-devel Info Page

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
https://mail.python.org/mailman/listinfo/matplotlib-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20160803/b88058a3/attachment.html&gt;

I'd be happy to give it a try once the new toolbar becomes usable from Qt
(which is the backend I use all the time) :slight_smile:
Note that you can currently already activate mplcursors for any of your
scripts just by setting the MPLCURSORS environment variable to a
JSON-encoded kwargs that will get passed to `mplcursors.cursor()` -- the
simplest being `MPLCURSORS={} python foo.py`.

Antony

2016-08-03 11:56 GMT-07:00 Federico Ariza <ariza.federico at gmail.com>:

Hi

Super cool!

One idea. Why not add a simple tool (new ToolManager) to
activate/deactivate the mplcursors at will from the toolbar?
If you need help don't hesitate to contact me

If it does adapt well as a Tool we can talk about a PR to add it as a
standard tool.

Good job
Federico

2016-07-28 9:51 GMT-07:00 Benjamin Root <ben.v.root at gmail.com>:

Hey, that is pretty slick! I especially like the decorator option to
connecting events to the cursor objects.

This is a pretty common pattern nowadays, probably could be added to
matplotlib's event handling code itself.

Kudos!

Ben Root

Hi all,

I have written a new "data cursors for matplotlib" package, inspired
from @joferkington's mpldatacursor but rewritten from scratch, with a much
simpler API. Please have a look at
GitHub - anntzer/mplcursors: Interactive data selection cursors for Matplotlib. .

I hope you'll like it.

Antony

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
Matplotlib-devel Info Page

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
Matplotlib-devel Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160803/51ea57cd/attachment.html&gt;

···

On Jul 28, 2016 2:09 PM, "Antony Lee" <antony.lee at berkeley.edu> wrote:

On Sun, Jul 24, 2016 at 8:41 PM, Antony Lee <antony.lee at berkeley.edu> >> wrote: