Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide certain points on a CNiGraph plot

Solved!
Go to solution

Hi there,

 

I use a CNiGraph to plot (function PlotXY()) data which is stored in a CNiReal64Matrix array.

It works fine but sometimes, some of the points in the array are invalid points and I would like no to plot them, ie. hide them, which would then interrupt the plotted line in some areas.

Anyone knows how to achieve this? 

 

Thanks

 

Bob

0 Kudos
Message 1 of 4
(7,866 Views)

Hello Bob,

 

Have you considered creating a simple function that accepts your array as an input, iterates through it, and copies only valid data points over to a new array to be returned in its place?  I think this may be a fairly easy approach to employ in order to achieve your end goal.

0 Kudos
Message 2 of 4
(7,841 Views)
Solution
Accepted by topic author Bob666

Bob,

 

I believe I may have neglected your desire to plot discontinuous line segments.  If this is indeed your end goal, this resource may be of help to you.

0 Kudos
Message 3 of 4
(7,837 Views)

Thanks a bunch Matt,

 

This is exactly what I was after.

 

Bob

0 Kudos
Message 4 of 4
(7,823 Views)