Make a line plot with errorbars on the data points.
Parameters: | data : sequence of sequences
x : sequence
errtype : ‘ste’ or ‘std’
curves : None or list of tuple(x, y)
linestyle : str or None
fmt : str
perc_sigchg : bool
baseline : float or None
**kwargs :
|
---|---|
Returns: | list :
|
Examples
Make a dataset with 20 samples from a full sinus wave period, computed 100 times with individual noise pattern.
>>> x = np.linspace(0, np.pi * 2, 20)
>>> data = np.vstack([np.sin(x)] * 30)
>>> data += np.random.normal(size=data.shape)
Now, plot mean data points with error bars, plus a high-res version of the original sinus wave.
>>> x_hd = np.linspace(0, np.pi * 2, 200)
>>> elines = plot_err_line(data, x, curves=[(x_hd, np.sin(x_hd))])
>>> # pl.show()