PDA

View Full Version : Labeling scatter plot points



hamid ghous
27th October 2009, 11:08
Hi,

I am a Phd student and new to QT. I am using QT+QWT to develop a small application for visualizing genes(One of human body unit)...

I am using QWTplot and qwtcurve classes to generate a scatter plot. I am looking to label those points. How can I do it??

Details:
I have labels of the points in an array and values that I am drawing in another array. So I am looking to label the points when I visualize(scatter plot) them.

Also how can I change color for each point. I am currently using QColorDialog::getColor(); but all the points comes up with same color. What I am thinking to implement is that for each point I have label and a color dialougebox so I can change the color of a single point..


Help would be appreciated...


Cheers,

Uwe
29th October 2009, 07:35
Probably you want to implement a combination of a curve and a couple of markers.

Uwe