Re: [Matplotlib-users] Adding 2 Line2D objects to a Subplot

2010-12-20 Thread Benjamin Root
On Monday, December 20, 2010, Jose Guzman wrote: > > > > > > > > Hi everybody > > I wanted to collect a combination of plots to insert then in a subplot. > I choose to create Line2D objects to use the .add_line() method of the > AxesSubplot class, but unfortunately this does lead to the desired >

[Matplotlib-users] Adding 2 Line2D objects to a Subplot

2010-12-20 Thread Jose Guzman
Hi everybody I wanted to collect a combination of plots to insert then in a subplot. I choose to create Line2D objects to use the .add_line() method of the AxesSubplot class, but unfortunately this does lead to the desired results. Here my dummy version: from matplotlib.lines import Line2D f

Re: [Matplotlib-users] AttributeError: _pan_start

2010-12-20 Thread John Haiducek
No, I'm not adding or removing axes while interacting. (A single axes instance gets created when the figure is instantiated and remains the life of the figure.) Thans for the suggestion of replacing Axes.end_pan. Unfortunately I've left on a trip since my initial post so it will be a while before

Re: [Matplotlib-users] AttributeError: _pan_start

2010-12-20 Thread Michael Droettboom
This is a wild guess -- sounds like a race condition where the mouse up event is somehow getting fired before the mouse down event. In your more complex example, are you adding/removing axes while interacting with the plots? You could try "papering over" this problem by replacing Axes.end_pan