06-11-2013 11:50 AM
So freaky, I didn't even believe it, but here it is:
In the attached VI, I have the plot legends beside the graphs, so I can put check boxes beside them for turning on/off channel display. In the third, I need to include cursors, but when I made the cursor legend visible and moved it (it automatically appears to the side, under where I've put the plot legend), the plot legend changes in size. It gets shorter, which is annoying, but also means that it no longer lines up with the check boxes.
I tried using the PlotLegend:Height property, and managed to _read_ that it is, indeed changing, but I cannot set it (or rather, I cannot get it to _stay_ set).
Even weirder: when I opened the file on my laptop, the size change problem doesn't occur, BUT the plot legend starts out a different size from the check boxes! I know that I can use "Scale objects with panel," but I've always shied away from that, because of the text size issues, and beside that, since I'm setting the size of the panel, things really should be the same size, anyway.
Because of the different-monitor-different-size issue, I don't know whether the "modified screen" version of the file will show the problem, but I've attached it, in case.
Any ideas?
specs that might matter:
desktop at work: Dell machine with Windows7 64-bit, AMD Radeon HD7470 graphics card LabVIEW 2012 SP1
laptop at home: Dell Latitude E5430
Thanks!
Solved! Go to Solution.
06-11-2013 04:55 PM - edited 06-11-2013 04:58 PM
Well, that certainly is weird - it does it on my PC as well. I have no explanation for it.
Perhaps as a workaround you could use the built-in plot visibility checkboxes instead. Then you wouldn't need a separate control.
Right-click on the plot legend, and select "Visible Items" >> "Plot Visibility Checkbox".
06-11-2013 05:41 PM
How sad that I didn't even know about that! How long has that been available? 🙂
I assume that I'll be able to grab that info somewhere, so I can use the selected channels for saving-to-file choices, too. Is it available in a preperty node or something?
Thank you for confirming that I'm not completely nuts in seeing this.
06-11-2013 06:09 PM
Yes, you can use the same properties you were already using.
"Active plot" to select a particular plot, and "Plot" >> "Visible" to read or write the plot visibility.