21did21
1st July 2011, 18:41
Hello world,
i have K curve on a plot and i want to change the color for each curves but i don't know how i can made this
Me code it's here:
for ( int k = 0 ; k < NbOfCurve ; ++k )
{
mycurve[0+k*nombreDoublePlot]->attach( myPlot1 );
mycurve[0+k*nombreDoublePlot]->setStyle( QwtPlotCurve::Dots );
mycurve[0+k*nombreDoublePlot]->setPen( QPen( Qt::blue, 2) );
}
This code plots all the curve in blue, however i want differents color for each iteration :confused:
can you help me please ;)
i have K curve on a plot and i want to change the color for each curves but i don't know how i can made this
Me code it's here:
for ( int k = 0 ; k < NbOfCurve ; ++k )
{
mycurve[0+k*nombreDoublePlot]->attach( myPlot1 );
mycurve[0+k*nombreDoublePlot]->setStyle( QwtPlotCurve::Dots );
mycurve[0+k*nombreDoublePlot]->setPen( QPen( Qt::blue, 2) );
}
This code plots all the curve in blue, however i want differents color for each iteration :confused:
can you help me please ;)