HA: [ROOTDEV] color in .C file

From: Valeri Onuchin <Valeri.Onoutchine_at_cern.ch>
Date: Tue, 3 Jun 2008 15:19:01 +0200


Hi Christian,
I do not see this problem against SVN head (seems, has been fixed).

Regards. Valeriy

-----Исходное сообщение-----
От: owner-rootdev_at_root.cern.ch от имени Christian Hansen Отправлено: Вт, 6/3/2008 3:09
Кому: rootdev_at_root.cern.ch; roottalk_at_root.cern.ch Тема: [ROOTDEV] color in .C file  

Dear Rooters,

When I define color on objects like for example arrows and text with SetLineColor and SetTextColor
and plot the objects to a canvas and then save the canvas to a .C file this color is not saved in the .C
file but if I save the canvas to a .jpg file the color works. I have attached a small test program that shows this. This test program produces two output files;
test.C and test.jpg. Executing test.C (root[1] .x test.C) shows all objects black but in the .jpg file
the arrow and the text are red.
It would help me a lot if somebody showed me how to edit this test program so that the .C file also
remember what color I want on the arrow and the text.

I use version 5.19/04.

Thanks!
/Christian Received on Tue Jun 03 2008 - 15:20:33 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 03 2008 - 17:50:01 CEST