[Matplotlib-users] how to create interactive plots in jupyter python3 notebook?

2016-02-26 Thread Andy Davidson

>Hi
>
>I currently have a plot that gets update in a loop with data from a
>remote system. It works and looks great. (matplotlib rocks!) I currently
>use
>
>%matplotlib inline
>
>Now I need to make the graph interactive. By interactive I mean I would
>like the user to be able to
>
>
>1. move the mouse to get info about that point in the graph
>2. Click on a point on the graph to do some sort of drill down. I¹ll
>probably need to fetch additional data, to display. The data might be
>text or some sort of table to display
>3. Scroll the graph along it¹s x and y axis
>4. Add a couple of widgets that let users select parameters of the graph
>or underlying data set
>
>
>Googling around I found people mention several choices
>
>1) Œ%matplotlib notebook¹ and the nbagg backend, how ever I have not been
>able to find any documentation or code tutorials, or examples
>
>2)  Plot.ly https://plot.ly/python/ipython-notebook-tutorial/
>
>3) Python widgets for the Jupiter Notebook
>https://github.com/ipython/ipywidgets
>
>Any comments or suggestions would be appreciated.
>
>Kind regards
>
>Andy



--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] how to create interactive plots in jupyter python3 notebook?

2016-02-27 Thread Andy Davidson
Hi Jens

Thanks. %matplitlib notebook looks great!. As I move the mouse around I see
values for x, and y . Any idea how I can get programmatic access to the
mouse events? I.E. When a user clicks I need to fetch some additional info.

I am sure there are many other things I’ll eventually want to do. For
example I have several different lines on the same graph. I want to make it
easy for the user to select values on a give line not just some random spot

Are there any other code examples or documentation?

Kind Regards

Andy


From:  Jens Nielsen 
Date:  Saturday, February 27, 2016 at 12:45 AM
To:  Andrew Davidson ,

Subject:  Re: [Matplotlib-users] how to create interactive plots in jupyter
python3 notebook?

> Hi Andy
> 
> Please just try replacing %matplotlib inline with %matplitlib notebook which
> should give you a complete interactive backend in the notebook.
> It's by no means as nicely documented as it should be, but I use it on a
> regular basis with matplotlib 1.5.1 and don't have any major issues. If you
> see any issues
> please report them here or on the github bug tracker.
> 
> You can use the IPython widgets together with the notebook backend with the
> caveat that the interactive slider has to be defined in a new cell following
> the figure due to a bug see
> https://gist.github.com/jenshnielsen/20d9bf3fa40b309ad865  for an example
> 
> Hope this is useful
> Jens
> 
> On Sat, 27 Feb 2016 at 03:04 Andy Davidson 
> wrote:
>> 
>>> >Hi
>>> >
>>> >I currently have a plot that gets update in a loop with data from a
>>> >remote system. It works and looks great. (matplotlib rocks!) I currently
>>> >use
>>> >
>>> >%matplotlib inline
>>> >
>>> >Now I need to make the graph interactive. By interactive I mean I would
>>> >like the user to be able to
>>> >
>>> >
>>> >1. move the mouse to get info about that point in the graph
>>> >2. Click on a point on the graph to do some sort of drill down. I¹ll
>>> >probably need to fetch additional data, to display. The data might be
>>> >text or some sort of table to display
>>> >3. Scroll the graph along it¹s x and y axis
>>> >4. Add a couple of widgets that let users select parameters of the graph
>>> >or underlying data set
>>> >
>>> >
>>> >Googling around I found people mention several choices
>>> >
>>> >1) Œ%matplotlib notebook¹ and the nbagg backend, how ever I have not been
>>> >able to find any documentation or code tutorials, or examples
>>> >
>>> >2)  Plot.ly https://plot.ly/python/ipython-notebook-tutorial/
>>> >
>>> >3) Python widgets for the Jupiter Notebook
>>> >https://github.com/ipython/ipywidgets
>>> >
>>> >Any comments or suggestions would be appreciated.
>>> >
>>> >Kind regards
>>> >
>>> >Andy
>> 
>> 
>> 
>> 
->>
-
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] trouble using emoji in labels

2016-08-21 Thread Andy Davidson
I am having a heck of a time figuring out how to use emoji’s in labels. I am
using python3 on a Mac and matplotlib 1.5.2

The unicode demo works.
http://matplotlib.org/examples/pylab_examples/tex_unicode_demo.html  I think
my issue might have to do with fonts?


I found a discussion about emojis and fonts at
http://stackoverflow.com/questions/30049760/emoji-in-matplotlib-figures-on-o
s-x
They suggest adding the following line
prop = fm.FontProperties(fname='/System/Library/Fonts&#‌​47;Apple\ Color\
Emoji.ttf')matplotlib.rcParams['font.family'] = prop.get_name()

How ever I get the following error

/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-package
s/matplotlib/font_manager.py in get_name(self)
735 properties.
736 """
--> 737 return ft2font.FT2Font(findfont(self)).family_name
738 
739 def get_style(self):

RuntimeError: In FT2Font: Could not set the fantasize

Here is what my graph looks like if I follow the ‘tex unicode demo'
Also I have about 21 different “categories / factors”  any suggestions how
to format the graph so the legend looks nice? Notice the colors are reused
and the legend is to bit

Thanks in advance

Andy


Log message:
DEBUG:root:AEDWIP pwsPlotDate() label: ★
DEBUG:root:AEDWIP pwsPlotDate() label: ✅
DEBUG:root:AEDWIP pwsPlotDate() label: ✓
DEBUG:root:AEDWIP pwsPlotDate() label: ✔
DEBUG:root:AEDWIP pwsPlotDate() label: ✪
DEBUG:root:AEDWIP pwsPlotDate() label: ❤
DEBUG:root:AEDWIP pwsPlotDate() label: 🏻
DEBUG:root:AEDWIP pwsPlotDate() label: 🐓
DEBUG:root:AEDWIP pwsPlotDate() label: 🐔
DEBUG:root:AEDWIP pwsPlotDate() label: 🐦
DEBUG:root:AEDWIP pwsPlotDate() label: 👈
DEBUG:root:AEDWIP pwsPlotDate() label: 👍
DEBUG:root:AEDWIP pwsPlotDate() label: 👎
DEBUG:root:AEDWIP pwsPlotDate() label: 👿
DEBUG:root:AEDWIP pwsPlotDate() label: 🔥
DEBUG:root:AEDWIP pwsPlotDate() label: 🖕
DEBUG:root:AEDWIP pwsPlotDate() label: 🗽
DEBUG:root:AEDWIP pwsPlotDate() label: 😂
DEBUG:root:AEDWIP pwsPlotDate() label: 😫
DEBUG:root:AEDWIP pwsPlotDate() label: 🚂


--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users