LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph display uncertain number lines.

Dear all,

 

I want to display uncertain number lines on a XY graph, and the number of lines is typed by the user. How to do this?

 

Thanks,

Mei

0 Kudos
Message 1 of 21
(3,885 Views)

The graph will display as many plots as you put into the array you wire to it, that number doesn't have to be fixed. You can change properties of the graph to adjust the number of plots shown on the legend, and the style and color of each plot drawn on the graph, on the fly.

0 Kudos
Message 2 of 21
(3,877 Views)

What is a "uncertain number line"?

 

Do you just want to display multiple plots? Are the x-values evenly spaced?

Is the number of plots fixed and you want to select/view a subset? Look at the visibility checkbox.

 

It would probably help if you could attach a simple VI.

0 Kudos
Message 3 of 21
(3,874 Views)

@arteitle wrote:

The graph will display as many plots as you put into the array you wire to it, that number doesn't have to be fixed. You can change properties of the graph to adjust the number of plots shown on the legend, and the style and color of each plot drawn on the graph, on the fly.


While I am not sure abou the currnet version of LV but at one time, we would get errors if we presented more plots to a graph at run than there had been plots in the plot legend.... Something about invalid some such.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 21
(3,840 Views)

The oldest version I have installed is 2015, but in it and 2017 you can create a brand new XY Graph with only one plot shown in the legend and feed it an array of 100 plots, and it'll graph them all using assorted default colors.

Message 5 of 21
(3,838 Views)

@arteitle wrote:

The oldest version I have installed is 2015, but in it and 2017 you can create a brand new XY Graph with only one plot shown in the legend and feed it an array of 100 plots, and it'll graph them all using assorted default colors.


You got an error if trying to set an "active plot" property for a plot that does not exist yet. (e.g. if you have 100 plots and try to set the color of plot # 102 via a property node).

 

You can wire more plots than legends and that worked always.

Message 6 of 21
(3,832 Views)