LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fill circles on xy graph

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 

0 Kudos
Message 1 of 4
(5,413 Views)

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.

 

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 4
(5,405 Views)

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.

 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 4
(5,403 Views)
Simply add a second plot with the points in reverse order and use 'Fill To'.  See quick example, I could spend longer cleaning up the code, but I'll leave that up to you.  You may also want to tweak the colors, I didn't bother.  In principle it uses twice as many points as necessary since each plot only needs to be a semi-circle.
Message 4 of 4
(5,372 Views)