LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting points of different colors and sizes

Solved!
Go to solution

Hello,

 

Is there a way to plot several points of different colors and sizes?  Like small sizes would be green, medium sizes yellow, and large sizes red?  I have tried using XY plot and Plot Multi-XY, but I'm not having much luck.  It seems like there may be a way to do it with Plot Multi-XY if I use the XY Plot Cosmetics and the Sized Scatter Plot Cosmetics, but I can't find anything about how these two options work and it hasn't made much sense to me when I'm just playing around with it.

 

Thanks!

0 Kudos
Message 1 of 3
(2,854 Views)

Hi txsmall,

 

use one grpah with 3 plots. Set the properties of the 3 plots (pointsize+color) to your needs...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,848 Views)
Solution
Accepted by topic author txsmall

Gerd has the right idea.

Say you have 3 ranges: < A, A-B, > B

 

You would check each data point as it came in, to see which range it fell in.

Build 3 seperate arrays, and cluster each one vs a 1D array of the corresponding X values.

Then if you pass those 3 clusters to an XY graph, you will have a graph that shows different colors/styles for each range.

Cory K
0 Kudos
Message 3 of 3
(2,833 Views)