LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Legend behavior when switching between plots in graph.

I am trying to plot two plots on a single XY graph. The user should be able to switch between the individual plots as well as showing them together. I do not use the Plot.Visible property but instead change Plot.Color to transparent to make sure the Y-scale keeps updating also when the plot is hidden. This works fine, but the Curve in the legend disappears for one of the graphs when it is hidden but not for the other one. I guess that the correct behavior is that they disappear but if it would be possible to make them both visible in the legend the entire time this would be desirable. I have made and attached a simplified VI of what I am trying to accomplish.

 

Any ideas about what the problem is and how I could solve it?

 

Thanks,

Johan Gustafsson

 

0 Kudos
Message 1 of 2
(2,388 Views)
Hi,
 
i'd changed a little bite your code. Cause if you set the line color to transparent, the legend must also be transparent. So, I think that you can't go that way.
 
See my approach.
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 2 of 2
(2,377 Views)