Re: correct steps to display x axis labels on specific x axis points
Brought to you by:
rathmann
|
From: David S. <Dav...@Ma...> - 2011-06-28 12:46:40
|
Hi Giacomo, Are you clearing the cache before creating new labels? I had a similar problem, and it turned out that as long as the previous labels were in the cache, new labels were never drawn. Look at the code in QwtAbstractScaleDraw::drawLabel (I think - no code in front of me now). Regards, David _______________________________________________________________ David Stranz, Ph.D. dav...@Ma... Sierra Analytics, Inc. 5815 Stoddard Road, Suite 601 Modesto, CA 95356 Tel: (209) 545-8508 http://www.massspec.com _______________________________________________________________ On 6/28/2011 1:33 AM, Giacomo wrote: > qDebug()<< > axisScaleDiv(QwtPlot::xBottom)->ticks(QwtScaleDiv::MajorTick); > > returns the correct ticks at every replot(), but no labels are drawn nor > ticks. > > I'll try to produce a simple example to investigate the problem > > Thanks. > > Il giorno lun, 27/06/2011 alle 17.23 +0200, Uwe Rathmann ha scritto: >>> But no labels nor ticks are drawn on the x axis scale. >> >> Check the QwtScaleDiv object your scale engine is returning. Guess it has no >> major ticks - the only type of ticks, where you might have labels. >> >> Uwe >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> qwt-interest mailing list >> qwt...@li... >> https://lists.sourceforge.net/lists/listinfo/qwt-interest > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > qwt-interest mailing list > qwt...@li... > https://lists.sourceforge.net/lists/listinfo/qwt-interest > > |