Problem in QwtPlotCurve
Subject: Problem in QwtPlotCurve
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-04-16 04:07:32 GMT
Hi All,
I am newbie to qwt and qt. I am trying to alter the example data_plot so that a mark will appear on the graphs at some particular point.
For this i used the following code
iValX = cRight->x(x);
iValY = cLeft->y(x);
printf("\n X & Y Val = %d %d\n",iValX,iValY);
//if((x%10) == 0)
if(iValX == 15)
{
mY->setXValue(x);
QPen p;
const QColor oldcc = p.color();
cRight->setSymbol(QwtSymbol(QwtSymbol::VLine,
QBrush(c), QPen(c), QSize(1, 10)) );
}
if(iValY == 15)
{
cLeft->setSymbol(QwtSymbol(QwtSymbol::VLine,
QBrush(c), QPen(c), QSize(1, 10)) );
}
I am also attaching the graph i am able to plot .
Can any one help me out to solve this problem.
I am expecting a vertical lines on the curve when the value == 15 but, i am getting multiple vertical lines.
--
the biggest strength in the world is youth and the only strength that can conquer it is knowledge which we dont have cheers !!!!!!!!!!!!!!!!
------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________ qwt-interest mailing list qwt-interest <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qwt-interest
RSS Feed