LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combining multiple plot data into a single graph.

This is my current data structure:

 

  • 1D array of...  (contains 6 plots, each with their own x and y arrays)
    • A cluster of two elements
      • 1D array of I32
      • 1D array of DBL
  • A cluster of two elements
    • 2D array of DBL  (y points for multiple plots)
    • 1D array of I32  (x points for the multiple plots)

 

I need to combine these into something suitable for throwing at an XY-Graph.  This operation will need to be done three times (for three different graphs), where only the 2D array of DBL is different for each graph (all three 2D arrays are located in the same cluster along with the shared 1D array).  What is the best way of doing this?

 

The 1x6 array of clusters contains plots 0-5 for each graph.  Is there a way to hide these plots from the graph's legend?



Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 1 of 2
(2,615 Views)

@J.Mamakos wrote:

I need to combine these into something suitable for throwing at an XY-Graph.  This operation will need to be done three times (for three different graphs), where only the 2D array of DBL is different for each graph (all three 2D arrays are located in the same cluster along with the shared 1D array).  What is the best way of doing this?


Sorry - this was actually a bit wrong/incomplete.

 

Graph1 includes one 2D array of DBL against the 1D array of I32.

Graph2 includes elements 2-3 of the 1x6 array, and also one 2D array of DBL against the 1D array of I32.

Graph3 includes elements 4-5 of the 1x6 array, and also one 2D array of DBL against the 1D array of I32.

 

This is how I'm doing it at the moment, but am I missing a trick here?  Is there a better way?

Graph initialize.JPG

 

As for my question about hiding any plots (on the legend) that came from the 1x6 array, is this even posible?

Either that, or is it possible to hide a graph whilst leaving its legend showing?

Or can one show/hide a graph's label in run-time?



Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 2 of 2
(2,598 Views)