|
From: ssinfod <ss...@gm...> - 2015-03-31 19:59:44
|
In fact, I would like to draw other stem plots each at different offset. Ex: -+----_-----_--+-----_--- -+----_---+-_--+--_----- -+--+-----_------+-----_- I also found vlines but I have the same problem I don't know how to add a horizontal offset to the values. Ex: import numpy from matplotlib import pyplot x = numpy.arange(10) y = numpy.random.random(10)-0.5 pyplot.vlines(x, 0, y, color='red', bottom=2) # Stems pyplot.plot(x, y, 'D') # Stem ends pyplot.plot([x.min(), x.max()], [0, 0], '--') # Middle bar pyplot.grid(True) pyplot.show() ssinfod -- View this message in context: http://matplotlib.1069221.n5.nabble.com/stem-plot-with-horizontal-offset-BaseValue-tp45297p45300.html Sent from the matplotlib - users mailing list archive at Nabble.com. |