11-10-2009 01:19 PM
Is there any way to return graph plots to a visible state without wiring in property nodes and running the VI the graph is in? I was just re-using some old graphing code that had most of the plots set to invisible programatically the last time they were saved. I'd already erased the code that controlled their visibility because I didn't need it in this application. When I went to view the results of the new code most of the plots were invisible. I looked through all tabs on the graph properties page and all the right-click options but ended up having to temporarily drop in property nodes to "visiblize" each plot.
It's not a big deal since it's not often an issue but I'm wondering whether I'm missing something obvious here.
11-10-2009 02:25 PM
One method of hiding a graph is to det its data to 'nan'. This is an alternative to seting the color or visibility of a plot. It is a nice method of hiding points or regions of a graph as well (not possible from property nodes).
11-10-2009 02:28 PM
see attached
11-10-2009 02:29 PM
11-10-2009 02:31 PM
if the data is still there, you can right click on the plot, make a constant and then pass the constant to a new graph.
11-10-2009 02:49 PM
Thanks Paul but it's not the old data I care about. I had a nice graph with multiple scales (assigned to the correct plots), pretty colors, etc. that I wanted to re-use rather than re-create. I easily massaged the new incoming data to be displayed on my old graph but many of the plots were set to invisible. I just thought there would be some way in the pop-up properties to turn them all back on. It makes sense that not all properties can be exposed that way. It would take dozens of tabs.
As I said, it was no big deal to put a property node down, set all the plots to visible, then remove it. Next time I'll know to save my graphs in a default state.
11-10-2009 03:44 PM
11-10-2009 03:53 PM
One method of hiding a graph is to det its data to 'nan'. Changing it's data will not hide a graph. You could hide a PLOT that way, but not a graph.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
11-10-2009 03:59 PM
I had a nice graph with multiple scales (assigned to the correct plots), pretty colors, etc. that I wanted to re-use rather than re-create. I easily massaged the new incoming data to be displayed on my old graph but many of the plots were set to invisible. I just thought there would be some way in the pop-up properties to turn them all back on.
The short answer is no - there is no dialog way to do that.
If this happened to me, I would:
Blog for (mostly LabVIEW) programmers: Tips And Tricks
11-11-2009 09:12 AM
That's pretty much what I did except I just dropped the For Loop right on the old VI, ran it once, then removed the loop. Actually, I might put it back and use it to initialize the graph.
Thanks for your reply,
K