Re: qwt plot and scrollbars
Brought to you by:
rathmann
|
From: Huseyin K. <hus...@gm...> - 2009-03-10 18:42:48
|
Hi Giacomo, I am not a professional but I did this before for a measurement and visualisation. I remember, there is no way in the library to make this automatically. I did it like this: derive a QwtPlot, reserve some space for datas, give a desirable page fragment value and use it to calculate how many page fragments totaly and how many page fragments will be visible in the plot.(page fragments : how many number of values will scroll at every scroll step) Then, make some funtions for these and make one slot which use this page fragment number to set the datas location that will visible. Finaly, connect scrollbars valueChanged(int) signal to this slot. Also you should make some functions to get max page fragment number and set scrollbars max value. I hope I could expalin. Huseyin On Tue, Mar 10, 2009 at 2:37 PM, Giacomo S. < gia...@el...> wrote: > Good morning. > > Is there a simple way to make my QwtPlot have the horizontal scrollbar > automatically shown when the x data vector size reaches a certain value? > > For instance, when I have 200 elements in the x axis, I want the plot to > enable scrolling. > > Thanks in advance > > Giacomo. > > > > ------------------------------------------------------------------------------ > _______________________________________________ > qwt-interest mailing list > qwt...@li... > https://lists.sourceforge.net/lists/listinfo/qwt-interest > |