[vtkusers] font color of color bar
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Sun Mar 24 15:48:09 EST 2002
>>>>> "ZZ" == Zhengyu Zhang <zzhang3 at uiuc.edu> writes:
ZZ> Hi, I am using a color bar to annotate values, but I found the
ZZ> font is by default white. Since I am using white background
ZZ> (have to be white), the fonts are rather vague. I checked the
ZZ> manual of 'vtkScalarBarActor' but seems to be unable to set
ZZ> the color? There is an 'setLabelFormat' funtion but I don't
ZZ> know what parameter should I give. Anybody can help me? Thanks
ZZ> a lot!
sc_bar = vtkScalarBarActor()
# ...
sc_bar.GetProperty().SetColor(0.0, 0.0, 1.0)
# use your favorite color.
prabhu
More information about the vtkusers
mailing list