LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display annotations comfortably on XY graph?

I have 2 plots(signal1 and signal2) on the XY Graph,they have the same X and different Y,like below picture.

I know how to add annotation for each plot, but my problem is that the annotation is not well displayed if the axis is not matching the plot data properly.

As far as I know,the annotation can be bind either to a point of a plot or to a position of the graph.

The thing is that the point of a plot may not be displayed in the plot area(black area) if the axis range are not as expected ,so that the annotation can not show up either.

The same as binding to a position of the graph.

Is there a smart automatic way to display the annotations in a viewable area on the graph?

Thanks

 

 

xygraph.bmp

0 Kudos
Message 1 of 6
(3,629 Views)

Hi avater,

 

use the plot legend to show the plot names - if this is the purpose of your annotations as shown in the image…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,609 Views)

Not really.

Actually I have more than 2 plots on the graph,but only 2 of them I would like to annotate to users.

Like plots on the graph are below:

Plot1:Signal1

Plot2:LimitsUpper1

Plot3:LimitsLower1

Plot4:Signal2

Plot5:LimitsUpper2

Plot6:LimitsLower2

So if I use plot legend,I cannot decide only Plot1 and Plot4 are displayed.

 

0 Kudos
Message 3 of 6
(3,602 Views)

Hi avater,

 

create your own plot legend: "array of cluster of (colorbox, string)"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(3,596 Views)

How to create a plot legend of my own?

0 Kudos
Message 5 of 6
(3,589 Views)

HI avater,

 

as said before: by creating an "array of cluster of colorbox & string"!

Once you have the indicator arranged all you need to do is to read the plot properties and set colorbox and string accordingly…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(3,587 Views)