09-09-2022 04:59 AM
Hi,
there is an array I want to plot, that has 3 columns: x_Value, y_Value, Point_size. Plotting x & y is quite easy. What I need to add to this plot, is the quantity corresponding to each plot point, and I want to depict this information as the size of the plot points.
I have figured out how to do this in MS Excel, like the below picture and this was reasonably strightforward.
But as I am developing my tool in LabVIEW I need to implement this Idea in LabVIEW as well. Anybody can help me how to tackle this problem in LabVIEW?
What I have so far came up with, which is quite sruprising to me, is that in LabVIEW it is not possible to single out a plot points, in order to be able to manipulate its properties.
09-09-2022 06:14 AM
Hi Hasamon,
what you need is apply the Distribution Plot, the data input is an array of cluster[X,Y] .
Regards,
FrankenChino
09-09-2022 07:00 AM - edited 09-09-2022 07:07 AM
FrankenChino, Thanks. Would you please share your code too?
09-09-2022 07:13 AM
There is another solution if you draw the circles yourself. Every Graph indicator owns three picture controls inside the Plot area. There is the place to draw the circles:
There is one disadvantage with that: if the plot is rescaled or moved, the picture elements remain fixed at the plot area, so you have to react to these events and redraw the circles.
09-09-2022 07:50 AM
Hi Hasamon,
you just need create a Distribution Plot, the rest will be show in the Block Diagram, just changing some input values, you will get different styles.
Regards,
FrankenChino
09-09-2022 10:45 AM
If there is only a limited number of sizes (e.g. 2-20 pixel diameter), All you need is create an xy graph with multiple plots and sort the data accordingly, keeping also one line plot with all points.
09-11-2022 11:49 AM
I guess I just don't do enough fancy plotting -- I'd never heard of a "Distribution Plot" (though I have used "tricks" similar to the suggestion by @Altenbach to make a plot with points of different colors (never occurred to me to change the size of the point ...). You can teach an Old Dog New Tricks!
Bob Schor
09-12-2022 03:49 AM - edited 09-12-2022 03:50 AM
@altenbach: But can you change the point size in an XY-Graph? I didn't find that setting ☹️
09-12-2022 11:02 AM - edited 09-12-2022 11:33 AM
It is linked to the linewidth, I think, but you won't show the lines so it does not matter. We have six linewidths, so this might be sufficient.
(I would probably go with the "plot images" feature as has been suggested (see also my very old post here)
09-13-2022 07:55 AM - edited 09-13-2022 08:19 AM
Thank you guys. I am not an expert in LabVIEW, however your comments as experts are indicating how primitive the LabVIEW is in handling with plots. One may argue that the LabVIEW is an engineering tool and is not designed for such uses. But I remember like more that 10 years ago as I used to work with MATLAB -as an Engineering Tool- it was very strightforward to access and modify such porpeties of plots. Even markers don't have their own size property and should get changed through line property. How strange!