RE: Plotting step functions
Hi Uwe,
Didn't know about this. It looks like QwtPlotCurve::drawSteps()
does internally that same thing I suggested to do manually; that
is, it duplicates each x or y point (depending on the inverted flag)
to create a step profile.
Thanks for bringing this to our attention. I started using QwtPlot
only in the last few months, and I am impressed with the amount
of thought and work that you have put into it. I have an ActiveX
control which does many of the same things that the QwtPlot / QwtPlotCurve
combination can do, but now I think I might replace it so I
can have an all-Qt solution.
It may need some optimization - I often have stick mode plots
with 250,000 sticks. My ActiveX control is optimized to minimize
drawing calls when vertical sticks have the same x pixel coordinate,
and also performs its own internal clipping. Otherwise, performance
is too slow. I will try QwtCurve with and without optimization
to see how it compares.
Thanks for a good job.
Best regards,
David
_______________________________________________________________
David Stranz, Ph.D. david_stranz <at> MassSpec.com
Sierra Analytics, Inc.
5815 Stoddard Road, Suite 601
Modesto, CA 95356
Tel: (209) 545-8508
http://www.massspec.com
_______________________________________________________________
> -----Original Message-----
> From: qwt-interest-bounces <at> lists.sourceforge.net
> [mailto:qwt-interest-bounces <at> lists.sourceforge.net] On Behalf
> Of Uwe Rathmann
> Sent: Tuesday, July 22, 2008 10:32 PM
> To: List for both Qwt users and developers
> Subject: Re: Plotting step functions
>
> On Tuesday 22 July 2008 22:48, Ormond, Randy wrote:
>
> > I'm looking for a way to plot step functions, i.e. lines with
> > instantaneous changes in y values.
>
> What's wrong with the QwtPlotCurve::Steps curve style ?
>
> Uwe
>
> --------------------------------------------------------------
> -----------
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge
> Build the coolest Linux based applications with Moblin SDK &
> win great prizes
> Grand prize is a trip for two to an Open Source event
> anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qwt-interest mailing list
> qwt-interest <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qwt-interest
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/