Re: Using words on the Axes
Brought to you by:
rathmann
From: <gve...@gr...> - 2004-03-31 18:53:54
|
On Wed, 31 Mar 2004 11:30:47 -0700, na...@mo... wrote > Has anyone tried getting the Axes of a QWTPlot to display words > rather than numbers? > > i.e. I'd like to display the names of months (Jan-Dec) rather than > the corresponding numbers (1-12) on the X-Axis. > Derive a new QwtScaleDraw class and override the virtual virtual QString label(double v) const method to substitute the numbers by the names of the months. You'll find something similar in the TimeScaleDraw class in examples/cpuplot/cpuplot.cpp Gerard |