Re: [Matplotlib-users] Variable size markers legend formatting

2014-04-09 Thread Adam Hughes
Thanks.  That's probably the way I'll go.  At first, I thought creating
separate legend markers and removing them from the plot seemed hacky, but I
guess there's no way that matplotlib could know which legend size I want.
 I wonder if there'd be any interest in a PR to add a keyword to legend to
handle this situation?


On Wed, Apr 9, 2014 at 1:44 AM, Sterling Smith smit...@fusion.gat.comwrote:

 Adam,

 I haven't investigated, but does the discussion of the legend marker at
 [1] help?

 -Sterling

 [1]
 https://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg25200.html

 On Apr 8, 2014, at 3:44PM, Adam Hughes wrote:

  Hello,
 
  I've been searching but can't seem to find this topic addressed (perhaps
 wrong search terms)
 
  Simply put, I have a scatter plot with variable size markers, and I'd
 like to have the markers all be a single size in the legend.  Is there a
 standard way to do this?
 
  Thanks.
 
 --
  Put Bad Developers to Shame
  Dominate Development with Jenkins Continuous Integration
  Continuously Automate Build, Test  Deployment
  Start a new project now. Try Jenkins in the cloud.
 
 http://p.sf.net/sfu/13600_Cloudbees___
  Matplotlib-users mailing list
  Matplotlib-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Variable size markers legend formatting

2014-04-09 Thread Paul Hobson
On Wed, Apr 9, 2014 at 9:00 AM, Adam Hughes hughesada...@gmail.com wrote:

 Thanks.  That's probably the way I'll go.  At first, I thought creating
 separate legend markers and removing them from the plot seemed hacky, but I
 guess there's no way that matplotlib could know which legend size I want.
  I wonder if there'd be any interest in a PR to add a keyword to legend to
 handle this situation?


Why not just work the other way around with proxy artists. IOW, make the
artists but never add them to the plot.

http://matplotlib.org/users/legend_guide.html?highlight=proxy%20artists#using-proxy-artist
(works with Line2D artists)

-p




 On Wed, Apr 9, 2014 at 1:44 AM, Sterling Smith smit...@fusion.gat.comwrote:

 Adam,

 I haven't investigated, but does the discussion of the legend marker at
 [1] help?

 -Sterling

 [1]
 https://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg25200.html

 On Apr 8, 2014, at 3:44PM, Adam Hughes wrote:

  Hello,
 
  I've been searching but can't seem to find this topic addressed
 (perhaps wrong search terms)
 
  Simply put, I have a scatter plot with variable size markers, and I'd
 like to have the markers all be a single size in the legend.  Is there a
 standard way to do this?
 
  Thanks.
 
 --
  Put Bad Developers to Shame
  Dominate Development with Jenkins Continuous Integration
  Continuously Automate Build, Test  Deployment
  Start a new project now. Try Jenkins in the cloud.
 
 http://p.sf.net/sfu/13600_Cloudbees___
  Matplotlib-users mailing list
  Matplotlib-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users




 --
 Put Bad Developers to Shame
 Dominate Development with Jenkins Continuous Integration
 Continuously Automate Build, Test  Deployment
 Start a new project now. Try Jenkins in the cloud.
 http://p.sf.net/sfu/13600_Cloudbees
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Variable size markers legend formatting

2014-04-09 Thread Adam Hughes
Thanks Paul, I will try it out.


On Wed, Apr 9, 2014 at 12:21 PM, Paul Hobson pmhob...@gmail.com wrote:




 On Wed, Apr 9, 2014 at 9:00 AM, Adam Hughes hughesada...@gmail.comwrote:

 Thanks.  That's probably the way I'll go.  At first, I thought creating
 separate legend markers and removing them from the plot seemed hacky, but I
 guess there's no way that matplotlib could know which legend size I want.
  I wonder if there'd be any interest in a PR to add a keyword to legend to
 handle this situation?


 Why not just work the other way around with proxy artists. IOW, make the
 artists but never add them to the plot.


 http://matplotlib.org/users/legend_guide.html?highlight=proxy%20artists#using-proxy-artist
 (works with Line2D artists)

 -p




 On Wed, Apr 9, 2014 at 1:44 AM, Sterling Smith smit...@fusion.gat.comwrote:

 Adam,

 I haven't investigated, but does the discussion of the legend marker at
 [1] help?

 -Sterling

 [1]
 https://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg25200.html

 On Apr 8, 2014, at 3:44PM, Adam Hughes wrote:

  Hello,
 
  I've been searching but can't seem to find this topic addressed
 (perhaps wrong search terms)
 
  Simply put, I have a scatter plot with variable size markers, and I'd
 like to have the markers all be a single size in the legend.  Is there a
 standard way to do this?
 
  Thanks.
 
 --
  Put Bad Developers to Shame
  Dominate Development with Jenkins Continuous Integration
  Continuously Automate Build, Test  Deployment
  Start a new project now. Try Jenkins in the cloud.
 
 http://p.sf.net/sfu/13600_Cloudbees___
  Matplotlib-users mailing list
  Matplotlib-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users




 --
 Put Bad Developers to Shame
 Dominate Development with Jenkins Continuous Integration
 Continuously Automate Build, Test  Deployment
 Start a new project now. Try Jenkins in the cloud.
 http://p.sf.net/sfu/13600_Cloudbees
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users



--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] animate marker moving across plot

2014-04-09 Thread Michael Mossey
 I want to plot audio data (samples versus time), and then animate a marker
moving across the plot while the audio is played back. The marker should
stay in sync with the audio data that is being played at that moment. Is
there a way to do this using the animation capabilities of matplotlib? If I
could sync the movement of the market with an accurate timer (like a QTimer
in Qt) it should be good enough.

Mike
--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users