09-24-2009 08:05 AM
Hello,
I have a VI that draws circles on a XY graph. These circles represent the position of a microscope objective. The dwell time of the objective is increased, and I would like to fill the circles with color intensity that is related to this increase (I am using LV 8.0).
Thanks in advance,
Gaby
09-24-2009 08:24 AM
You might do better with a picture control if you are interested in a picture of circles, there is a draw circle and you can select color of the fill. filling plots is difficult since you are reallu filling between an axis and a plot or possible between 2 plots.
did you know that graphs have a built in set of picture controls as a property node called plot image (front middle back) that lets you draw dirrectly onto your plot.
09-24-2009 08:27 AM
Your VI using something called Stuff:\LabView games\Control Program\Linspace.vi
When I load it into LV 8.6.1, it finds a different vi called "Linspace" deep in the VI lib, which does something completely different.
I suggest you rename your VI to not conflict with the system, and possibly include it here.
That having been said, an X-Y graph is perhaps not the best place for a filled-circle type of drawing.
I'm not sure when the feature was introduced, but there is now a PLOT IMAGES property for graphs, where you can insert a picture in front of, or behind the plot data.
Consider using a PICTURE control to plot the data and the circles.
If you must use only an X-Y graph, then you have to create a separate plot for the FILL part, consisting of concentric circles around the center point, and colored the way you want.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
09-24-2009 12:59 PM