08-17-2012 02:04 PM
Is there a way to get a list of the plot names for a graph? I can get the count, but I want the actual names.
08-22-2012 02:08 PM
Hi,
Which graph in Measurement Studio are you working with?
08-22-2012 02:17 PM
Waveform Graphs
08-23-2012 11:39 AM
To confirm, are you are talking about the plot name I highlighted in the image?
If that is the case, I have not figured out how to do that. You can, however, gain access to the individual plots by using something similar to the code snippet below:
sampleWaveformGraph.Plots[x];
where x is between 0 to sampleWaveformGraph.Plots.Count-1.
I have a feeling you aren't going to be able to gain access to the plot name. Why do you need the plot name?
08-23-2012 12:28 PM
Yes, that is the plot name I am talking about. I am currently accessing the plots in the way you demonstrated, I was just hoping I could gain access to their names. My user can add as many plots as they want and then modify/delete them after that. I wanted to allow them to give them each a unique name so they instantly know what each one is, but I've worked around that. Thanks for your input.
10-02-2012 02:39 PM
I have the same question and am wondering how you worked around it. I'm rather surprised that there is no way to access the plot names. Any graph with more than 2 or 3 plots will get very confusing if you can't somehow give the plots meaningful names. If anyone has any ideas on how to give plots meaningful names and perhaps even tie it into a legend, it would be greatly appreciated. Names like plot0, plot1, plot2 ... just aren't cutting it for me. Any thoughts?
Thanks.
10-04-2012 10:26 PM
I have not been able to figure out how to programmaitically get access to the plot names. As for using a legend, have you seen this discussion forum about using a legend? Are you getting stuck somewhere specific?