Re: [Matplotlib-users] Equivalent of d3's "step-after" interpolation?

2014-10-30 Thread Thomas Caswell
https://stackoverflow.com/questions/12841847/step-function-in-matplotlib/12846384#12846384 is a much better example of how to control the step function. On Thu, Oct 30, 2014 at 1:01 PM, Pierre Haessig wrote: > You might also be interested in > http://stackoverflow.com/questions/15188005/linestyle

Re: [Matplotlib-users] Equivalent of d3's "step-after" interpolation?

2014-10-30 Thread Pierre Haessig
You might also be interested in http://stackoverflow.com/questions/15188005/linestyle-in-matplotlib-step-function which details the `drawstyle` parameters. It can be set to 'steps-post' for example. The only case I was not able to cover with this parameter are the fill_between plots, because th

Re: [Matplotlib-users] Equivalent of d3's "step-after" interpolation?

2014-10-30 Thread Skip Montanaro
Benjamin> Kinda sounds a bit like a barchart with the 'step' option, I think? Almost, but not quite. I think of barcharts as displaying truly discrete data, often with the dependent variable being a count of some sort and the independent variable being a bucket. In my example, while prices X and Y

Re: [Matplotlib-users] Equivalent of d3's "step-after" interpolation?

2014-10-30 Thread Sterling Smith
http://stackoverflow.com/questions/8921296/how-do-i-plot-a-step-function-with-matplotlib-in-python On Oct 30, 2014, at 11:29AM, Benjamin Root wrote: > Kinda sounds a bit like a barchart with the 'step' option, I think? > > On Thu, Oct 30, 2014 at 12:16 PM, Skip Montanaro wrote: > I've been doin

Re: [Matplotlib-users] Equivalent of d3's "step-after" interpolation?

2014-10-30 Thread Benjamin Root
Kinda sounds a bit like a barchart with the 'step' option, I think? On Thu, Oct 30, 2014 at 12:16 PM, Skip Montanaro wrote: > I've been doing some work with d3 recently. It's > certainly been an education... Out of the box, it supports several > different types of interpolatio

[Matplotlib-users] Equivalent of d3's "step-after" interpolation?

2014-10-30 Thread Skip Montanaro
I've been doing some work with d3 recently. It's certainly been an education... Out of the box, it supports several different types of interpolation between two points , which I've found quite useful. It allows me t