This was really helpful:
>>> line, = plot([1,2,3])
>>> setp(line, linestyle='--')
Oh, and in case it matters I am running
In : matplotlib.__version__
on Ubuntu 9.04 (with the rather lame name of Jaunty Jackolope).On Fri, May 15, 2009 at 6:51 PM, Ryan Krauss <email@example.com> wrote:
I think I used to use plot with linestyle='steps' to plot data for zero-order hold control systems. This means that if the system is updating on a period of 0.01 seconds (100 Hz), the values should be considered held from 0 to 0.0099999999999999 and then from 0.01 to 0.01999999999 and so on each time step. So, what I want is a plot that looks like late_steps.png (hopefully attached), but what I am currently getting is early_steps.png.
This code snippet recreates my problem. My t2 hack almost makes the plot look right.
t = arange(0,0.1,0.01)
y = 10*t
t2 = t+0.01
Is this a bug, is this the expected behavior for other applications, or can this be changed with some configuration setting?