Re: [Matplotlib-users] line segments in a scatter plot

2014-12-11 Thread Thomas Caswell
I would just call use `plot` and keep track of the Line2D objects returned. On Thu Dec 11 2014 at 10:40:05 AM Nils Wagner wrote: > Hi Ben, > > I have attached a sample scatter plot. The task is to add lines to the > scatter plot. > > Nils > > > On Thu, Dec 11, 2014 at 3:47 PM, Benjamin Root wro

Re: [Matplotlib-users] line segments in a scatter plot

2014-12-11 Thread Nils Wagner
Hi Ben, I have attached a sample scatter plot. The task is to add lines to the scatter plot. Nils On Thu, Dec 11, 2014 at 3:47 PM, Benjamin Root wrote: > Nils, > > Perhaps the rectangle selector might be of use? It defaults to a draw mode > of 'box', but you can set it to line so that it look

Re: [Matplotlib-users] line segments in a scatter plot

2014-12-11 Thread Benjamin Root
Nils, Perhaps the rectangle selector might be of use? It defaults to a draw mode of 'box', but you can set it to line so that it looks like a ruler widget. http://matplotlib.org/api/widgets_api.html#matplotlib.widgets.RectangleSelector I can imagine that you could set up a selector callback that

[Matplotlib-users] line segments in a scatter plot

2014-12-11 Thread Nils Wagner
Hi all, how can I create line segments between consecutive selected points of a scatter plot in an interactive manner ? It should be possible to create several unclosed polygonal lines. Each polygonal line might have a different color. A small example is appreciated. Thanks in advance. -- V