10-10-2023 03:16 AM
Hello,recently, I've been trying to achieve the same effect as LabVIEW's built-in intensity chart control using drawing functions on a canvas instead. However, it seems I haven't found a particularly good method for this. Could someone please offer some assistance or advice? Thanks!
10-10-2023 04:38 AM
Hi zl,
@zl907 wrote:
Hello,recently, I've been trying to achieve the same effect as LabVIEW's built-in intensity chart control using drawing functions on a canvas instead. However, it seems I haven't found a particularly good method for this. Could someone please offer some assistance or advice? Thanks!
Use the built-in intensity chart when you need the "same" effect!
What's the point of your approach?
Where are you stuck with your own "method"?
10-10-2023 06:32 AM
Hi, GredW,thanks for your reply.
You know, we usually use the intensity graph when we want to plot a 2D array. I hope to ensure that when I change the value of XY, for example, from (200, 200) to (100, 200), his plotting area changes accordingly, ensuring a consistent XY scale.
10-10-2023 07:49 AM
10-10-2023 09:09 AM
so when you say you say "plotting area changes accordingly" you mean to keep the proportion of the graph ?
IN that case you need to find out the proportion of the size of the plot and when the scale changes you apply the same proportion to change teh "size" of the plot when the scale changes.
You can use property node-> plot area size
10-10-2023 09:57 AM
@zl907 wrote:
You know, we usually use the intensity graph when we want to plot a 2D array. I hope to ensure that when I change the value of XY, for example, from (200, 200) to (100, 200), his plotting area changes accordingly, ensuring a consistent XY scale.
It is typically a bad idea to change the size of FP objects, because it makes the UI messy. It is not clear what you want (sorry, cannot look at your VI at the moment)
If you want to guarantee "square pixels", rendering the data into a 2D picture would be a good solution.