olivier1978
2nd May 2014, 16:20
Hi all,
I am wondering hoow to properly use setSymbolExtent on a QwtPlotTradingCurve. I started from the stockchart example, where the value is defined as 12 * 500 * 1000.0 with this comment:
// as we have one sample per day a symbol width of 12h avoids overlapping symbols
So, what does 500 and 1000.0 stand for? How could I use setSymbolExtent to have a "good" view of my candlestick chart? By good I mean no overlapping candles whatever the number of candles is.
Note that I am aware of this thread (http://www.qtcentre.org/threads/53046-How-to-idenfity-which-move-was-performed-by-a-zoom-event?highlight=setSymbolExtent), but it is still not answered, and that I do not have a QwtScaleWidget.
Hope you could help.
Best regards
I am wondering hoow to properly use setSymbolExtent on a QwtPlotTradingCurve. I started from the stockchart example, where the value is defined as 12 * 500 * 1000.0 with this comment:
// as we have one sample per day a symbol width of 12h avoids overlapping symbols
So, what does 500 and 1000.0 stand for? How could I use setSymbolExtent to have a "good" view of my candlestick chart? By good I mean no overlapping candles whatever the number of candles is.
Note that I am aware of this thread (http://www.qtcentre.org/threads/53046-How-to-idenfity-which-move-was-performed-by-a-zoom-event?highlight=setSymbolExtent), but it is still not answered, and that I do not have a QwtScaleWidget.
Hope you could help.
Best regards