LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming Marker Color in XY Graph

Hello Everyone,

 

In Igor by Wavemetrics, I can plot XY graph with marker only, the marker color can be tied to the corresponding value in a third data column.  In some sense, this is similar to but not quite like an intensity graph.  Is it possible to do this in Labview?

 

I will move my X-Y stages to search for a laser beam in large steps and nail its maximum in finer steps.  I would like to plot the trails of my search.  I would appreciate if someone already has this kind of search vi.

 

Thanks in advance.

 

Fang

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

Perhaps the 3-D Graph is what you are looking for.



------------------------------------------------------------------------------------------------------
Kudos are (always) welcome for the good post. 🙂
0 Kudos
Message 2 of 3
(2,943 Views)

Fang,

 

It is possible to change plot point colors of an XY graph by using a property node run through a case structure.  If the results found entering the case structure set it to either true or false, the points can be set to be a certain color.  The property you are looking for is Plot.Fill/Point Color.  However, this is definitely not the most robust method for doing this, as it involves breaking down your x and y data into individual numbers using a for loop.  Also, because the way the XY graph pulls in data, it is essentially impossible to change the color of just one point.  In order to do this, you would need to set up a multiplot and have one plot using one color and the other plot using the default color.  The plot that utilized your signal color would only plot if certain conditions were met.  

 

So, I would say that using the 3-D graph functions would be a much simpler method, as was suggested by the previous user.

 

Mr. Moore

0 Kudos
Message 3 of 3
(2,933 Views)