LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Background colour on graph

Hi!
This time I wonder how to get a white background on my graph. I don´t quite
understand the numeric code that controls the colour.
/Peter

--
/Peter Jansson,
Teracom Systemservice Malmoe Sweden
http://www.teracom.se
0 Kudos
Message 1 of 4
(3,289 Views)
If you want the white backgound all the time, select the paint tool,
right click in the graph, and select white for the background. If you
programatically want to change the background white based on some
condition, create an attribute node, select the plot area colors->BG
color attribute. Then wire a color box constant (found in numeric-
>Additional numeric constants->color box constant) to it.

Mark

In article <963568288.616981@proxy2>,
"Peter Jansson, Teracom Malmoe" wrote:
> Hi!
> This time I wonder how to get a white background on my graph. I don´t
quite
> understand the numeric code that controls the colour.
> /Peter
>
> --
> /Peter Jansson,
> Teracom Systemservice Malmoe Sweden
> http://www.teracom.se
>
>


Sent via Deja.co
m http://www.deja.com/
Before you buy.
0 Kudos
Message 2 of 4
(3,289 Views)
OK, and if you want to understand the code behind it :
take a color box
flatten it to string,
take the second, third and fourth char
unflaten these from string into an U8
and then you get the R,G and B component



wrote in message news:8kn05f$7nd$1@nnrp1.deja.com...
> If you want the white backgound all the time, select the paint tool,
> right click in the graph, and select white for the background. If you
> programatically want to change the background white based on some
> condition, create an attribute node, select the plot area colors->BG
> color attribute. Then wire a color box constant (found in numeric-
> >Additional numeric constants->color box constant) to it.
>
> Mark
>
> In article <963568288.616981@proxy2>,
> "Peter Jansson, T
eracom Malmoe" wrote:
> > Hi!
> > This time I wonder how to get a white background on my graph. I don´t
> quite
> > understand the numeric code that controls the colour.
> > /Peter
> >
> > --
> > /Peter Jansson,
> > Teracom Systemservice Malmoe Sweden
> > http://www.teracom.se
> >
> >
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
0 Kudos
Message 3 of 4
(3,289 Views)
Instead of flattening to a string, just wire it to an integer indicator
or probe it.
Change the integer to display in hex and it will be obvious that there
are three
bytes, R, G, and B, and a fourth that is largely unused and reserved.

Greg McKaskle

> OK, and if you want to understand the code behind it :
> take a color box
> flatten it to string,
> take the second, third and fourth char
> unflaten these from string into an U8
> and then you get the R,G and B component
>
0 Kudos
Message 4 of 4
(3,289 Views)