Data exploration tools when plotting

Are there any plans to put in data exploration tools into plotting? For
example, if I do a simple plt.plot(np.sin(np.linspace(0,2*np.pi), 100);
plt.show(), putting a tool in the toolbar whereby I can click on a point
and get its x,y value?

Thanks,
Isaac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20170428/b5fc007d/attachment.html>

Hello

There are no immediate plans, but the new ToolbarManager makes it pretty
easy for you to implement different kind of tools and add them to the
toolbar.

Take a look at the example
https://matplotlib.org/examples/user_interfaces/toolmanager.html and let me
know if it helps

Federico

···

On Apr 28, 2017 1:10 PM, "Isaac Gerg" <isaac.gerg at gergltd.com> wrote:

Are there any plans to put in data exploration tools into plotting? For
example, if I do a simple plt.plot(np.sin(np.linspace(0,2*np.pi), 100);
plt.show(), putting a tool in the toolbar whereby I can click on a point
and get its x,y value?

Thanks,
Isaac

_______________________________________________
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/20170428/53d61af0/attachment.html>

thank you!

···

On Fri, Apr 28, 2017 at 1:26 PM, Federico Ariza <ariza.federico at gmail.com> wrote:

Hello

There are no immediate plans, but the new ToolbarManager makes it pretty
easy for you to implement different kind of tools and add them to the
toolbar.

Take a look at the example https://matplotlib.org/
examples/user_interfaces/toolmanager.html and let me know if it helps

Federico

On Apr 28, 2017 1:10 PM, "Isaac Gerg" <isaac.gerg at gergltd.com> wrote:

Are there any plans to put in data exploration tools into plotting? For
example, if I do a simple plt.plot(np.sin(np.linspace(0,2*np.pi), 100);
plt.show(), putting a tool in the toolbar whereby I can click on a point
and get its x,y value?

Thanks,
Isaac

_______________________________________________
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/20170428/bbb88f8e/attachment.html>

See also (self plug) https://mplcursors.readthedocs.io/en/latest/.
Antony

2017-04-28 10:28 GMT-07:00 Isaac Gerg <isaac.gerg at gergltd.com>:

thank you!

Hello

There are no immediate plans, but the new ToolbarManager makes it pretty
easy for you to implement different kind of tools and add them to the
toolbar.

Take a look at the example https://matplotlib.org/example
s/user_interfaces/toolmanager.html and let me know if it helps

Federico

Are there any plans to put in data exploration tools into plotting? For
example, if I do a simple plt.plot(np.sin(np.linspace(0,2*np.pi), 100);
plt.show(), putting a tool in the toolbar whereby I can click on a point
and get its x,y value?

Thanks,
Isaac

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
https://mail.python.org/mailman/listinfo/matplotlib-devel

_______________________________________________
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/20170428/74bcaa69/attachment.html>

···

On Fri, Apr 28, 2017 at 1:26 PM, Federico Ariza <ariza.federico at gmail.com> > wrote:

On Apr 28, 2017 1:10 PM, "Isaac Gerg" <isaac.gerg at gergltd.com> wrote:

https://pypi.python.org/pypi/mpldatacursor and
http://glueviz.org/en/stable/ might
also be of interest.

There is already the mouse position read out, which is not specific to the
point, but can be 'good enough'

If you have a specific application, the tools are there to build it:
https://matplotlib.org/users/event_handling.html

Tom

···

On Fri, Apr 28, 2017 at 4:40 PM Antony Lee <antony.lee at berkeley.edu> wrote:

See also (self plug) https://mplcursors.readthedocs.io/en/latest/.
Antony

2017-04-28 10:28 GMT-07:00 Isaac Gerg <isaac.gerg at gergltd.com>:

thank you!

On Fri, Apr 28, 2017 at 1:26 PM, Federico Ariza <ariza.federico at gmail.com >> > wrote:

Hello

There are no immediate plans, but the new ToolbarManager makes it pretty
easy for you to implement different kind of tools and add them to the
toolbar.

Take a look at the example
https://matplotlib.org/examples/user_interfaces/toolmanager.html and
let me know if it helps

Federico

On Apr 28, 2017 1:10 PM, "Isaac Gerg" <isaac.gerg at gergltd.com> wrote:

Are there any plans to put in data exploration tools into plotting?
For example, if I do a simple plt.plot(np.sin(np.linspace(0,2*np.pi), 100);
plt.show(), putting a tool in the toolbar whereby I can click on a point
and get its x,y value?

Thanks,
Isaac

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
https://mail.python.org/mailman/listinfo/matplotlib-devel

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
https://mail.python.org/mailman/listinfo/matplotlib-devel

_______________________________________________
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/20170503/2b58cc25/attachment.html>

I was using matlab to analyze some data and thought the inspection tools
were really nice and convenient but also simple.

···

On Wed, May 3, 2017 at 10:17 AM, Thomas Caswell <tcaswell at gmail.com> wrote:

https://pypi.python.org/pypi/mpldatacursor and http://
glueviz.org/en/stable/ might also be of interest.

There is already the mouse position read out, which is not specific to the
point, but can be 'good enough'

If you have a specific application, the tools are there to build it:
https://matplotlib.org/users/event_handling.html

Tom

On Fri, Apr 28, 2017 at 4:40 PM Antony Lee <antony.lee at berkeley.edu> > wrote:

See also (self plug) https://mplcursors.readthedocs.io/en/latest/.
Antony

2017-04-28 10:28 GMT-07:00 Isaac Gerg <isaac.gerg at gergltd.com>:

thank you!

On Fri, Apr 28, 2017 at 1:26 PM, Federico Ariza < >>> ariza.federico at gmail.com> wrote:

Hello

There are no immediate plans, but the new ToolbarManager makes it
pretty easy for you to implement different kind of tools and add them to
the toolbar.

Take a look at the example https://matplotlib.org/
examples/user_interfaces/toolmanager.html and let me know if it helps

Federico

On Apr 28, 2017 1:10 PM, "Isaac Gerg" <isaac.gerg at gergltd.com> wrote:

Are there any plans to put in data exploration tools into plotting?
For example, if I do a simple plt.plot(np.sin(np.linspace(0,2*np.pi),
100); plt.show(), putting a tool in the toolbar whereby I can click on a
point and get its x,y value?

Thanks,
Isaac

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
https://mail.python.org/mailman/listinfo/matplotlib-devel

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
https://mail.python.org/mailman/listinfo/matplotlib-devel

_______________________________________________
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/20170503/b2deb691/attachment-0001.html>

I've never heard of nexpy -- thanks for sharing!

Aside from having a simple tool to explore data in a fashion similar to
matlab, it would be nice to have a properties editor so that one can futz
with the linestyle's etc until satisfied and then be able to update their
rc file.

Isaac

···

On Wed, May 3, 2017 at 2:25 PM, Osborn, Raymond <rosborn at anl.gov> wrote:

It is probably overkill for what you want, but perhaps I can put a plug in
for NeXpy (http://nexpy.github.io/nexpy/), which embeds a Matplotlib
window in a PyQt GUI that includes an IPython shell. It automatically shows
the cursor positions in the Options tab. Your question makes me realize
that it would be easy to store the values of a cursor click in shell
variables - it is used programmatically in a few places, but the values are
not currently accessible from the shell. I am releasing a new version soon,
so I will see if I can include it.

NeXpy is designed as a simple toolbox for viewing and manipulating HDF5
files, with an underlying API that allows you to construct HDF5 data
structures in memory before saving them. However, you can do a lot in the
shell without needing to save the data as HDF5. Using your example, you
would just need to type in the shell

    >>> x=np.linspace(0, 2*np.pi, 100)
    >>> NXdata(np.sin(x), x).plot()

Ray

On May 3, 2017, at 9:19 AM, Isaac Gerg <isaac.gerg at gergltd.com> wrote:

On Apr 28, 2017 1:10 PM, "Isaac Gerg" <isaac.gerg at gergltd.com> wrote:

Are there any plans to put in data exploration tools into plotting?
For example, if I do a simple plt.plot(np.sin(np.linspace(0,2*np.pi),
100); plt.show(), putting a tool in the toolbar whereby I can click on a
point and get its x,y value?

Thanks,
Isaac

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
https://mail.python.org/mailman/listinfo/matplotlib-devel

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
https://mail.python.org/mailman/listinfo/matplotlib-devel

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
https://mail.python.org/mailman/listinfo/matplotlib-devel

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
https://mail.python.org/mailman/listinfo/matplotlib-devel

--
Ray Osborn, Senior Scientist
Materials Science Division
Argonne National Laboratory
Argonne, IL 60439, USA
Phone: +1 (630) 252-9011 <(630)%20252-9011>
Email: ROsborn at anl.gov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20170503/751bb628/attachment.html>