12-20-2016 11:15 AM
Hello all,
I have a detailed Intensity Plot request when using the DataToScreen (the method that converts data points to their actual pixel position on the display).
I notice that when plotting with DataToScreen, the pixel position of each value is placed squarely in the middle of each data value. I am wondering if it possible to to choose instead of the middle of the data value, an offset that would place it at any of the corners of the data value.
Thank you!
12-21-2016 03:43 PM
Hi,
Are you trying to get an offset on the X and Y position of your pixel position? This forum post might be helpful: https://forums.ni.com/t5/Measurement-Studio-for-NET/Pixel-position-of-a-data-point/td-p/3360012
12-21-2016 05:39 PM
For intensity data in particular, there is no existing property that can customize the position where values are rendered. To achieve that effect, you would need to either supply data at a different center (e.g. use new Poin3D( 0.5, 0.5, value )
, instead of new Point3D( 0.0, 0.0, value )
, or new double[,] { value }
), or use a custom plot renderer to change how the intensity data is drawn (though that would not change the result produced by DataToScreen
).