It seems that this is not possible with bar or barh. I guess the best way is to use a separate errorbar comannd
import matplotlib.pyplot as plt import numpy as np val = 3+10*np.random.rand(5) # the bar lengths pos = np.arange(5)+.5 # the bar centers on the y axis yerr = np.random.rand(5) plt.figure(2) plt.bar(pos,val, align='center') erb = plt.errorbar(pos, val, yerr=[np.zeros(len(yerr)), yerr], fmt=None) erb[1][0].set_visible(False) # make lower error cap invisible plt.xticks(pos, ('Tom', 'Dick', 'Harry', 'Slim', 'Jim')) plt.show() -JJ On Sun, Oct 18, 2009 at 7:19 AM, Christian Meesters <meest...@imbie.uni-bonn.de> wrote: > Hi, > > Is there a way to have errorbars in a bar plot going in just one > direction? E. g. like that > > - > | > +-----+ > | | > > instead of > > - > | > +-----+ > | | | > - > > ? > > TIA > Christian > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users