Tony Yu <tsy...@gmail.com> writes: > Does the following do what you need? > > #---- > import numpy as np > import matplotlib.pyplot as plt > > width = 0.5 > height = 10 > > for x in np.arange(11): > strip = np.random.random(size=(50, 1)) > plt.imshow(strip, extent=(x-width/2, x+width/2, 0, height)) > > plt.xlim(-width, x+width) > > plt.show() > #----
Not completely since it requires an equally spaced "strip". I have two vectors (one for the vertical axis, one for the data). Best regards Ole ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users