Hi,I have created a patch against latest svn that adds a function step to the axes class to plot step-functions ;-) It's really simple but nice ... Any interest in adding this?
Manuel
<<inline: stepplot.png>>
Index: axes.py =================================================================== --- axes.py (revision 3709) +++ axes.py (working copy) @@ -4995,6 +4995,18 @@ steps=[1, 2, 5, 10], integer=True)) return im + + def step(self, x, y, *args, **kwargs): + x2 = npy.zeros((2*len(x)), npy.float32) + y2 = npy.zeros((2*len(x)), npy.float32) + + x2[0::2] = x + x2[1::2] = x + + y2[1::2] = y + y2[2::2] = y[:-1] + + self.plot(x2, y2, *args, **kwargs) class SubplotBase: """
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel