Hello,
My application is plotting graphs with line style and then there is a configuration dialog where the user can add dots on this lines. But when I press the checkbox to create the dots, nothing happens, my graph keeps the same. The part that I plot the graph is:
Code:
// Insert new curves curveArray[iGraphCounter].setTitle(object->legend.c_str()); curveArray[iGraphCounter].setPen(QColor(iColorMap[iGraphCounter][0],iColorMap[iGraphCounter][1],iColorMap[iGraphCounter][2],iColorMap[iGraphCounter][3])); curveArray[iGraphCounter].setRawSamples(&object->xContent[0],&object->yContent[0],object->xContent.size()); curveArray[iGraphCounter].attach(plot);
When the user press the combox to add the dots, the application goes to this part:
Code:
if (dotLinesCheckBox->isChecked()) { for (int i=0; i<iGraphCounter; i++) { } } else { for (int i=0; i<iGraphCounter; i++) { } } plot->replot();
I think it's because my curves are already attached and then I cannot change. But I'm not sure. And if what I think it's true, how can I make it?
How can I plot a graph with lines and then later add dots to the lines?
Thanks in advance
Best Regards
