LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a string into the xy graph control at a given position(x0,y0)?

I want to give a plotted point(x,y) in the xy graph a label to indicate something special just like the cursor legend does.
0 Kudos
Message 1 of 5
(3,166 Views)
The data in an xy graph is just an array of clusters of two data points. There is no way to add a label to the plot for future reference without adding more code. This could be as simple as a cursor location and a string stored as text.

If you are happy with the cursor behavor but do not want to see the cross hairs consider coloring it transparent. This way you can use the label of the cursor and see text on the plot. You can turn this on by right click in the second icon from the right on the cursor legend and choosing show name. The value of name can be set through a property node.
Message 2 of 5
(3,166 Views)
I have the same question, I already have a list of Comments and cursor position for that comments, but how can I add those strings to the graph. I tried adding one cursor for each comment, I can do it manually, I used a property node, using the "Active Cursor" properties like:Cursor.Position, Cursor.Name, Cursor.Style,Cursor.nameVisible.
But I do not know how to add them programatically. I think taht a loop is maybe useful, but I could not find the cursor property to add them.
0 Kudos
Message 3 of 5
(3,166 Views)
One thing. There doesn't seem to be a way to position the cursor "name" once your selected show name.
0 Kudos
Message 4 of 5
(3,166 Views)
> One thing. There doesn't seem to be a way to position the cursor
> "name" once your selected show name.

If you are in the editor, you use the positioning/grabbing/sizing tool
to change the delta between the cursor point and the cursor label. I'm
not sure there is a property to do this at runtime.

Greg McKaskle
0 Kudos
Message 5 of 5
(3,166 Views)