05-30-2013 06:09 AM
I have a XY garph that shows 3 plots. Sometimes I need to close some plots on the graph. I can do it. But I also want to delete the plot name on the legend of the graph too, I could not do it. How can I do it? The program is attached.
Solved! Go to Solution.
05-30-2013 01:26 PM
You can do this, but it will require a change to the way to display the plots. The legend always shows all plots which are present. To remove the plots from the legend, you need to remove the plots from the graph rather than just hiding them. You can do this by selectively adding plots to the final plot instead of always including all of them. Your boolean array will work as a flag to do this. In addition, you will need to dynamically set the name of the plots. This can be done using the plot name property.
Let us know if you need more help.
05-30-2013 02:35 PM
I tried sth but I cannot do that. How can I do?
05-31-2013 04:53 AM
Is this a solution for your topic?
Andrei
05-31-2013 05:20 AM - edited 05-31-2013 05:27 AM
Thank you andrey2006 but this is not the solution. This vi does the same thing that I sent previously. The only difference is that the vi you preapered deletes the plot names too. Besides, I want to resize the legend just for visible plots too. I have not found the solution yet.
Edit: Pictorial expalanation is attached.
05-31-2013 08:39 AM
The solution is actually a bit more complex than you may expect, since you have to change both the plot and the plot characteristics. Attached is something that should work, although it is not very optimized and has some momentary, expected, display glitches.
I do not have LabVIEW 2009 on my development computer, so I edited it in LabVIEW 2011 and saved for previous. I don't think I used anything new, so it should work. Let me know if you need more info.
05-31-2013 08:56 AM
Hi DFGray. This is exactly what I want but I have never thought that it could be as complex as that one. It works in version 2009. I need to study this code a little to get the idea. Thank you very much.