Re: [Matplotlib-users] Update values of errorbars [solved]

2010-12-03 Thread Stan West
> From: G. Durin [mailto:g.du...@inrim.it] > Sent: Tuesday, November 23, 2010 08:34 > # Update the error bars > barlinecols[0].set_segments(zip(zip(x-xerr,y), zip(x+xerr,y))) > barlinecols[1].set_segments(zip(zip(x,y-yerr), zip(x,y+yerr))) > > The last lines are a little clumsy, but I could no

Re: [Matplotlib-users] Update values of errorbars [solved]

2010-11-23 Thread G. Durin
On 11/16/2010 07:41 PM, Stan West wrote: > I believe I see how you could do it. The errorbar call returns the tuple p = > (plotline, caplines, barlinecols) [1], and to update the errorbars, you must > modify the objects in the caplines and barlinecols lists. Each element of the > caplines list is

Re: [Matplotlib-users] Update values of errorbars

2010-11-16 Thread Stan West
> From: Gianfranco Durin [mailto:g.du...@inrim.it] > Sent: Wednesday, November 10, 2010 11:32 > > Dear mpl users, > I have the following problem to solve. Imagine to have the > simple example reported on website plotting the errorbars of > some x,y data: ... > and if I change, for instance, y

[Matplotlib-users] Update values of errorbars

2010-11-10 Thread Gianfranco Durin
Dear mpl users, I have the following problem to solve. Imagine to have the simple example reported on website plotting the errorbars of some x,y data: #!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt # example data x = np.arange(0.1, 4, 0.5) y = np.exp(-x) # example vari