10-16-2017 07:46 AM
Hi,
I would like to create a color bar independently of any other graph objects.
I already made a vi which shows the resulting colors. You can set 3 different Colors and the vi creates and Displays the other Colors depending on the number of Color steps equidistantly. What I miss is some sort of indicator i.e. which value the respective color stands for. Usually in color bars there is some sort of y axis displaying the values. Any suggestions how I could achieve this?
Regards
10-16-2017 08:13 AM
10-16-2017 08:18 AM
It is unclear what, precisely, you wish to do. Several things are "doable", some harder than others.
Varying over time is pretty straight-forward, so I'll assume you mean varying over space. Varying discretely is also pretty straightforward, so I'll assume you mean varying continuously. Now, that's tricky! The only way I can think to do this is by "pixel-painting" (my as-yet-not-copyrighted term for making an image one pixel at a time) -- you create a Picture or IMAQ Image of a certain size, having a certain number of pixels, then you do a "discrete" coloring of each pixel according to some algorithm you determine to pick your color.
Note that there are (at least) two ways to specify a color (in LabVIEW) -- RGB, where you specify the amount of Red, Green, and Blue (light) in each pixel, and HSL, where you specify the Hue (Color), Saturation, and Luminance. For doing a Color Bar, you might find HSL is a more "natural" scale, and there are utilities that can convert HSL to RGB that you can use.
Bob Schor
10-16-2017 08:19 AM
Sure I can use the Color box Array, but it doesnt Show the respective values. How can I extract the Color bar from the intensity Chart? I don't want to Display the rest of the graph.
10-16-2017 08:24 AM
10-16-2017 08:39 AM
Thanks for the reply. According to your Definition I want to implement Variation over space. I Choose some Color and the number of steps between These Colors. The number of steps corresponds to the number of Elements in the Array of Color boxes. That's already done in the vi and is output as an Array of Color boxes. What I would like to do is to drow a thin line between These Color boxes and write the according value which I've already calculated before. I hope this makes my Problem clearer
10-16-2017 09:02 AM