Hi Uwe,
I'm trying to port QtiPlot to Qwt 5 and I've got some problems, which I couldn't solve (didn't find any hints neither in the doc, nor in the examples)., so I would like to ask you some thing and make some suggestions also.
Questions:
1) I was not able to set the scale division for a logarithmical axis: I would like to set the start, end limits of the scale, the step and to revert it (or not). How can this be donewith the new API?
2) I want to implement scales in scientific notation (superscripts for the powers of 10). The way I was normally doing it with Qwt4 was by subclassing QwtScaleDraw and reimplementing the virtual label (double) const function. Now this doesn't work completely, in fact something strange happens: the scales are painted correctly only if I initialize them like this in the QwtPlot object. If I want the user to change them later on, this doesn't work, the scales remain stuck with this old format. Any hints?
3) What happened with the QwtPlot::setAxisLabelFormat(int axis, ...) and axisLabelFormat() methods? How can I retrieve the information about the precision and format of the tick labels? Do I have to store this information by myself in my derived QwtPlot class?
Suggestions:
1) I also need to change the linewidth of the ticks and of the axes backbone. I achieved this by subclassing QwtScaleDraw, but I get into pbroblems when I want to draw the axis correctly, there are some extra spaces laft between the backbone and the ticks. Would it be posiible to incorporate this feature in Qwt?
2) enum QwtAbstractScaleDraw::Alignment {
BottomScale,
TopScale,
LeftScale,
RightScale
} and enum QwtPlot::Axis {
yLeft,
yRight,
xBottom,
xTop,
axisCnt
} should be synchronized for coherence sake. I don't know weather this changes something in the API, but from a developer point of view it would make more sense!
Thank you in advance!
With best regards,
Ion
---------------------------------
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
|