I am trying to make a plot with errorbars and upperlimits.
I’ve found the following pylab example http://matplotlib.sourceforge.net/examples/pylab_examples/errorbar_limits.html and it works fine both on a Mac OSX10.6 with python 2.6.1 and on Kubuntu 10.04 with python 2.6.5.
I’ve tried the to reproduce the example using matplotlib.pyplot but the limits do not show up, regardless of syntax or system (matplotlib 1.0.0 on Mac and 1.0.1 on Kubuntu)
I attach a sample code which does not work.
import numpy as np
import matplotlib.pyplot as plt
#create function to plot plus random error
x = np.linspace(0,3,100)
y = np.sin(x)
err = np.random.random(100)
plt.errorbar(x,y, yerr=err, color=‘g’,linestyle=‘None’,xuplims=True)
Does anyone know how to solve this problem?
Thanks in advance,