LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display arrows in the graph at specific location

Solved!
Go to solution

I want to display arrows in the graph like on the image. Is it possible?

 

Capture.PNG

0 Kudos
Message 1 of 5
(2,904 Views)
Solution
Accepted by topic author AndrazS

Yes 🙂

 

Use Annotations

Example_VI.png

 

Here I choose a fixed point - typically you're going to want to put the location of the annotation (X,Y values set to 4.4, 0.5 here) to an actual point in the graph, and then use the Label Offset to place the text and arrow from somewhere else.

Changing various values (style, point style) will adjust the appearance.


GCentral
Message 2 of 5
(2,894 Views)

Is it also possible to display green line between two markers?

Untitled.png

0 Kudos
Message 3 of 5
(2,844 Views)

For a line like that, one option would be to add another plot (as an extra array, etc) with specific values and plot as a line, probably with an adjusted line width.

 

The other might be to use the same annotation idea, put the label offset such that it is at one end, the position at the other end, and change the style or point style to remove the head from the arrow, whilst setting the label visible to false.

 

I haven't tried that latter idea, but I think it should work. The first is probably easier though...


GCentral
0 Kudos
Message 4 of 5
(2,840 Views)

As a side note, if you wanted multiple lines on a plot but them mot joined, place NaN values between pairs of points.


GCentral
0 Kudos
Message 5 of 5
(2,838 Views)