I want to display labels on x-axis according to the x-axis span. So if x-axis goes from 0-1000 I want to show label in certain format. However, if x-axis span is from 0-10000, I want the format to be different. I know that I need to derive from QwtScaleDraw and reimplement QwtScaleDraw::label(double) function to change the label. However, I cannot find a way to know what is the span of x-axis so that I send the requisite text format type.
Is there a way to know it from this class? If not, is there a work-around?