Sorry to say but i didn't get your idea about "const QColor &color parameter". I mean how can i change their colors to distinguish them on the plot? I am using the color parameter to set curve' s color as
Qt Code:
  1. curve[i]->setPen(QPen(color));
To copy to clipboard, switch view to plain text mode 
Am calling the draw function from main file i.e. curves.cpp!!

Thanks again.