Important: Please read the Qt Code of Conduct -

QwtPlot how to create an weekly Xaxis?

  • Hello guys,

    I was trying to find a method to create an "weekly X axis". I mean I have a bunch of data, and i know that each fixed size it represents a data in a specific week (for example data from 0 to 200 -> means week 1...), so instead of draw in the y axis a label for each specific data, i would like to draw a "week label" for a group of data, something like this:

    ! X Axis)!

    I know that i could use the class QwtScaleDraw to reimplement the virtual function: virtual QwtText label(double v) const, but i don't know how to represent a group of data to a single label...

    Thanks in advance

Log in to reply