From: Peter G. <pgr...@ge...> - 2005-09-20 10:08:45
|
> I want to plot a stepwise line using >plot([1,2,3,4,5],[2,-2,2,-2,2]). But what I get is something like two >triangular like shape. But I want a stepwise shape that has steep >vertical jumps. How can I do that? > > this what you mean? #!/usr/bin/env python from pylab import * plot([1,2,3,4,5],[2,-2,2,-2,2], linestyle='steps') gca().set_ylim( (-3, 3)) show() > Many thanks, >Zhang Le > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. Download >it for free - -and be entered to win a 42" plasma tv or your very own >Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >Matplotlib-users mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > -- Peter Groszkowski Gemini Observatory Tel: +1 808 9742509 670 N. A'ohoku Place Fax: +1 808 9359235 Hilo, Hawai'i 96720, USA |