Re: changing intervals
David Stranz <David_Stranz <at> MassSpec.com>
2012-02-09 18:25:10 GMT
The standard scale widget is implemented to create "nice" intervals for
tic marks, which is what one normally sees on published plots.
You can override this to produce tic marks at any intervals by
implementing your own QwtScaleEngine and overriding the divideScale()
method and returning your own QwtScaleDiv division.
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
_______________________________________________________________
On 2/9/2012 10:15 AM, jesse brockmann wrote:
> So, I have a graph with X values from 0 to 17, Major Intervals is 10,
> Minor is 5. But, I would like the major intervals to be 0, 1.7, 3.4
> ... 17 NOT 0, 2, 4, 6, 8 ... 16. Is there any way to do this? Not
> my choice, but I have to do it. *sigh*
>
> Thanks,
> JesseJay
>
>
> ------------------------------------------------------------------------------
> Virtualization& Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>
>
>
> _______________________________________________
> qwt-interest mailing list
> qwt-interest <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qwt-interest
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/