1 Attachment(s)
Are custom Axis Tags and Axis Labels possible?
QCustomPlot has some nice features around items on the chart. I'm working if that functionality is possible with Qwt? I've read the the docs and went through every example, but nothing stuck out to me. Here is an example:
Attachment 13358
I put a tag with a bit of an arrow for the last received price right on the y-axis and it looks great with or without the horizontal price line.
What do ya think?
Thanks in advanced,
Josh
Re: Are custom Axis Tags and Axis Labels possible?
QwtPlot is a composite widget, what makes certain things easier and other things harder.
For your particular use case you have the problem, that the line has to painted on the plot canvas, while the label has to be painted on the scale widget.
The line on the canvas would simply be a QwtPlotMarker - note, that such a marker could consist of a line and a text label ( see the bode example ).
Putting some labels on top of the scale is not supported out of the box, but can be implemented without too much work by overloading QwtScaleDraw::draw.
Uwe
Re: Are custom Axis Tags and Axis Labels possible?
Thanks for the explanation and tips.
Josh