Hi John,
John Hunter writes:
> On Wed, Jun 10, 2009 at 9:11 AM, John Hunter wrote:
>> ax.lines.remove(someline)
>> fig.canvas.draw()
> See also
> http://matplotlib.sourceforge.net/users/artists.html
Thank you very much, this helped a lot. (the manpages to artists and
axes are a bit complicated
On Wed, Jun 10, 2009 at 9:11 AM, John Hunter wrote:
>> The other question that now remains is: how can I remove a line from an
>> axes?
>
> ax.lines.remove(someline)
> fig.canvas.draw()
See also
http://matplotlib.sourceforge.net/users/artists.html
which covers this and other useful things.
J
On Wed, Jun 10, 2009 at 9:04 AM, Ole Streicher wrote:
> Hi John,
>
> John Hunter writes:
>> If for some reason the built in pick_event is unsuitable, you can
>> create your own matplotlib.backend_bases.MouseEvent and call
>> line.contains(event) for each line you want to hit test.
>
> Thank you, t
Hi John,
John Hunter writes:
> If for some reason the built in pick_event is unsuitable, you can
> create your own matplotlib.backend_bases.MouseEvent and call
> line.contains(event) for each line you want to hit test.
Thank you, that works for me. But for some reason, the "y" coordinate is
inve
On Wed, Jun 10, 2009 at 6:55 AM, Ole Streicher wrote:
> Hi again,
>
> when right-clicking on one or more lines in a plot, I want to present
> the user a context menu where he can select to remove these lines.
>
> Preferrably I want to do this not with a 'pick_event' connection but
> with the (Qt) b