Hi again,
Is it possible to stop the tick mark values changing from 998,999 to 1.0? Since there is no exponent label on the graph, to the user it looks like its going from 999 back to 1.
See the image for an image of what I mean.
Thanks again,
Hi again,
Is it possible to stop the tick mark values changing from 998,999 to 1.0? Since there is no exponent label on the graph, to the user it looks like its going from 999 back to 1.
See the image for an image of what I mean.
Thanks again,
Mapping the tick values int labels is done by QwtAbstractScaleDraw::label():
Qt Code:
{ }To copy to clipboard, switch view to plain text mode
Overload it if you want something different.
Uwe
philwinder (5th October 2008)
Phil,
I think what you are seeing is a locale problem. The tick marks aren't going from 999 to 1, they are going from 999 to 1000. Somehow, your locale is set to use a "." (period) instead of a "," (comma) to indicate the thousands position.
As Uwe said, if you don't want the thousands delimiter, you need to override the label() method in your own QwtScaleDraw-derived class.
Bookmarks