You may use the "errorbar" function to draw lines (including errorbars) and then hide (and show again) errorbars.
From the errorbar documentation, Return value is a length 3 tuple. The first element is the :class:`~matplotlib.lines.Line2D` instance for the *y* symbol lines. The second element is a list of error bar cap lines, the third element is a list of :class:`~matplotlib.collections.LineCollection` instances for the horizontal and vertical error ranges. so, something like below will work. l, ec, el = errorbar(x, y, yerr, marker='s') setp(ec, visible=False) setp(el, visible=False) # when you want to show the errorbars again setp(ec, visible=True) setp(el, visible=True) -JJ On Tue, Aug 19, 2008 at 3:30 AM, Søren Nielsen <[EMAIL PROTECTED]> wrote: > Is it possible to add errorbars to existing line2D plots? I'd like the user > to be able to enable/disable errorbars by pushing a button. > > Cheers, > Soren > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users