hi Every body I want to plot real time 2D graph
example some value in y-axis and some value in Y-axis
How to do this
please help
Every help shall be appreciated
Printable View
hi Every body I want to plot real time 2D graph
example some value in y-axis and some value in Y-axis
How to do this
please help
Every help shall be appreciated
Ok I managed to download the QWT library and build it
can someone provide simple example just ...a simple plot that indicate that my I am able to plot ....
please someone might have done this..
There are several examples with Qwt. For your needs, check cpuplot and oscilloscope.
I tried the examples but they are not helping me:(
can u suggest any one of the classes that I can start with
Why these examples do not help you ?
cpuplot is very simple, try to modify it for your needs,
it's just 4 curves updated with a timer.
Hi..All you need to do is re-implement widgets paintevent() with your real time data. Mostly you may need to use drawLine() function of QPainter.
sample logic:
Code:
QList<QPair<double,double> > realData; //initialize with ur data { for(int i=0; i<realData.count()-1; i++) { } }
You can check the sample codes and qt documentation for custom painting.