this the class that I change.
{
public:
TimeScaleDraw(QList<QString> *a)
{
t=a;
}
virtual QwtText label
(double v
) const {
while(v>=t->count())v-=t->count();
return t->at(v);
}
private:
QList<QString> *t;
};
class TimeScaleDraw: public QwtScaleDraw
{
public:
TimeScaleDraw(QList<QString> *a)
{
t=a;
}
virtual QwtText label(double v) const
{
while(v>=t->count())v-=t->count();
return t->at(v);
}
private:
QList<QString> *t;
};
To copy to clipboard, switch view to plain text mode
And now I need zoom the plot but only in X axis. I see that in the real-time example used the scrollbar that I need but in both axis. This example is quite complicate and I don't understand all that it do. I like to use one scrollbar , but only in x axis and not move Y scale.
I have copy the classes that are used to zoom and I create an object to perform the zoom but, how I could disable zoom in the y-axis?
Could anyone help me? thank you very much
Bookmarks