SandyEmerald
11th October 2013, 15:39
I' m using Qwt 6.0.1 undex Linux. Here's code example:
QwtPlotIntervalCurve *curve = new QwtPlotIntervalCurve("Test interval curve");
QVector<QwtIntervalSample> samples;
QwtIntervalSample *sample;
sample = new QwtIntervalSample(DBL_MIN, 300, 700);
samples.push_back(*sample);
sample = new QwtIntervalSample(DBL_MAX, 300, 700);
samples.push_back(*sample);
curve->setSamples(samples);
curve->setStyle(QwtPlotIntervalCurve::Tube);
curve->attach(ui->plot);
ui->plot->replot();
After running i saw this:
9688
and after i made right-click (i have default QwtPlotZoomer) i saw this:
9689
So, how i can set infinite interval curve, Uwe?
QwtPlotIntervalCurve *curve = new QwtPlotIntervalCurve("Test interval curve");
QVector<QwtIntervalSample> samples;
QwtIntervalSample *sample;
sample = new QwtIntervalSample(DBL_MIN, 300, 700);
samples.push_back(*sample);
sample = new QwtIntervalSample(DBL_MAX, 300, 700);
samples.push_back(*sample);
curve->setSamples(samples);
curve->setStyle(QwtPlotIntervalCurve::Tube);
curve->attach(ui->plot);
ui->plot->replot();
After running i saw this:
9688
and after i made right-click (i have default QwtPlotZoomer) i saw this:
9689
So, how i can set infinite interval curve, Uwe?