Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I draw two matrixes in one graph???

I have to draw two matrixes in one graph.
Matrix size is 10 X 100, 10 X 100.
Help me!
Have a good day!
0 Kudos
Message 1 of 2
(2,943 Views)
You can do this by adding multiple plots to the graph's plots collection and then plotting each matrix on its own plot. The easiest way to add additinal plots to a graph's plots collection is to right-click on the graph in the dialog editor, click on Properties, click on the Plots tab, and then click the Add button to add additional plots.

Now if you have a member variable for the graph in your dialog class (let's call it m_graph for this example), you could do this:

// Plot the first matrix
m_graph.Plots.Item(1).PlotXY(/* Your first 10x100 matrix data */);

// Plot the second matrix on a different plot, but same graph
m_graph.Plots.Item(2).PlotXY(/* Your second 10x100 matrix data */);

- Elton
0 Kudos
Message 2 of 2
(2,943 Views)