
BLT graph: Problem setting colors using RGB notation
Quote:
> in a BLT graph I want to obtain lines with different shades of red. So
> I set the colors to #ff0000, #ff1d1d, #ff3a3a etc. - but all lines
> appear in a plain red (like #ff0000).
If I understand this, you want one of more elements with different
colors. If I misunderstand, can you show an example of your code?
There should be no different whether you are using the RGB value
(e.g. #ffffff) or color name (white).
.graph element configure line1 -color red1
.graph element configure line2 -color red2
.graph element configure line3 -color red3
.graph element configure line4 -color red4
.graph element configure line1 -color #ff0000
.graph element configure line2 -color #ee0000
.graph element configure line3 -color #cd0000
.graph element configure line4 -color #8b0000
If you want the same element to have different color line segments,
that's different. You'll need to set up a weight vector (you can
reuse the y-vector) and a style mapping. You can look at
demos/graph2.tcl as an example.
--gah