Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Get list of plot names for given graph?

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.

0 Kudos
Message 1 of 7
(5,590 Views)

Hi,

 

Which graph in Measurement Studio are you working with?

Rohama K.
0 Kudos
Message 2 of 7
(5,576 Views)

Waveform Graphs

0 Kudos
Message 3 of 7
(5,574 Views)

To confirm, are you are talking about the plot name I highlighted in the image?

plot name.PNG

 

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  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?

 

Rohama K.
0 Kudos
Message 4 of 7
(5,565 Views)

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. 

0 Kudos
Message 5 of 7
(5,559 Views)

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. 

0 Kudos
Message 6 of 7
(5,528 Views)

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?

Rohama K.
0 Kudos
Message 7 of 7
(5,492 Views)