LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop plot legend names changing

Hi all,

 

I'm using the X-Y graph for the plot (comparison) of two datasets.

 

I have manually given each of the two datasets a name which appear in the legend.

 

The problem is once the graph is updated then the plot name in the legend for one(1) of the plots reverts to "Plot 1".

 

How do I stop it from doing this?  I want to fix the names of the plots in the legend.

 

Thanks,

 

Battler.

0 Kudos
Message 1 of 3
(2,761 Views)

Hi Battler,

I can't think why one of the plots would lose it's defined name unless you are setting the data in a bizarre way.

 

You can always set the plot legend name each time you update the data by using a property node for the XY graph and setting two properties:

1. Set the  ActivePlot property to 1 (0 is the first plot, 1 the second plot)

2. Set the  Plot.PlotName property to your desired string.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 2 of 3
(2,736 Views)

Hi Thoric,

 

I'm displaying the graph data using an array of two clusters, that's all.

 

I will try setting the property nodes.

 

Thanks for your help.

0 Kudos
Message 3 of 3
(2,713 Views)