Kinda sounds a bit like a barchart with the 'step' option, I think? On Thu, Oct 30, 2014 at 12:16 PM, Skip Montanaro <s...@pobox.com> wrote:
> I've been doing some work with d3 <http://d3js.org/> recently. It's > certainly been an education... Out of the box, it supports several > different types of interpolation between two points > <https://github.com/mbostock/d3/wiki/SVG-Shapes#line_interpolate>, which > I've found quite useful. It allows me to focus on assembling my data, and > not worry about transforming it to achieve the desired visual effect. For > example, in trading markets, once a trade is seen at a certain price, X, > it's useful to think of that price holding until the next trade price seen > at Y. With d3's "step-after" interpolation, given two points, (t0, X) and > (t1, Y), instead of drawing a single line between the two points, it draws > a horizontal line between (t0, X) and (t1, X), then a vertical line between > (t1, X) and (t1, Y). > > I've don't a bit of searching, but didn't find anything obviously like > this in matplotlib. Does it support such a feature? > > Thx, > > Skip > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
------------------------------------------------------------------------------
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users