Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

clipping data

Greetings:

 

I am trying to do analysis on data displayed in a Scatter Plot using Measurement Studio 8.6. There is a great method in the plot called clip data points, but it does not seem to work as I expect. I am calling the method after I zoom in on the plot, but I always get back the original data set. Am I missing something?

 

Here is the code....so simple!

 

double[] x, y;

this.graMain.Plots[0].ClipDataPoints(out x, out y);

 

X&Y always have the original data....never what is actually displayed after zoom.

 

Thanks for any help.

 

Ned Bennett

GDS

Message 1 of 3
(3,694 Views)
Hey Ned -

Unfortunately, what you are seeing is a gap in our documentation. ClipDataPoints was not intended to support scatter plots because a robust implementation would almost certainly negate any performance gains that could be seen when doing your own custom drawing (the intended use case for this method). I have filed a bug report for this issue to update the documentation (208242).

However, this method is fully supported with waveform plots, so depending upon your needs you may find it useful if you can use waveform plots.

Sorry for any inconvenience,

NickB
National Instruments
0 Kudos
Message 2 of 3
(3,668 Views)

Ok Nick..thanks for the info. I do think this is a valid implemenation request though, and is a missing method on x-y plots from the very first component works graphs. Please understand people want to report or analyze only data being displayed after zooming in on an area. Being able to quickly identify the displayed data would be very helpful.

 

I guess you are expecting us to look at the axis range max/min and then run through our data arrays to do any local analysis.

 

What irks us users is when you guys clearly have the range data avaliable, but are not exposing it to us.

 

 

Ned

 

Message 3 of 3
(3,665 Views)