Hello Dmitry,
With Qt interface you can paint any symbol over your TCanvas plot.
For example, a small modification of the HelloCanvas example (see: ftp://root.cern.ch/root/doc/chapter24.pdf page 362)
Index: HelloCanvas.cxx
--- HelloCanvas.cxx 6 Sep 2005 17:09:11 -0000 1.3 +++ HelloCanvas.cxx 17 Nov 2005 03:48:53 -0000@@ -9,6 +9,7 @@
mygraph->SetMarkerStyle(20); mygraph->Draw("AP"); + // Raise the widget on the top MyWidget->show(); // Create the png file MyWidget->Save("HelloCanvas.png"); + + //Add Label + QLabel *label = new QLabel("L",MyWidget); + label->setBackgroundMode(Qt::NoBackground); + label->move(40,40);
app->exec(); printf(" Good bye, ROOT Canvas\n"); return 0;
to use
http://doc.trolltech.com/3.3/qlabel.html
make a trick.
One may realize that setFont method:
http://doc.trolltech.com/3.3/qlabel.html#setFont
opens an access to the bunch of the QFont methods http://doc.trolltech.com/3.3/qfont.html to adjust the font appearance.
However making the postcript copy of this widget still will be a problem. One has to provide yet the interface to the Qt http://doc.trolltech.com/3.3/qprinter.html QPrinter class.
The pixmap copy should be ok though.
Just my 2 cents.
Hope this helps, Valeri -----Original Message----- From: owner-roottalk_at_pcroot.cern.ch on behalf of Olivier Couet Sent: Tue 11/15/2005 5:40 AM To: roottalk_at_cern.ch; Anne-Sylvie.Nicollerat_at_cern.ch; Dmitry Bandurin Cc: Rene Brun Subject: [ROOT] Re: calligraphic symbols (fwd) Hi, This is on our TODO list: http://couet.home.cern.ch/couet/POW_files/frame.htm. That's not any easy one to do. (It is to be implemented using polygons). Cheers, OC On Tue, 15 Nov 2005, Rene Brun wrote: > ---------- Forwarded message ---------- > Date: Tue, 15 Nov 2005 11:47:05 +0300 > From: Dmitry Bandurin <bandurin_at_fnal.gov> > To: roottalk_at_cern.ch > Cc: Anne-Sylvie.Nicollerat_at_cern.ch, Rene.Brun_at_cern.ch > Subject: calligraphic symbols > > > Hello, > > we need to put luminosity symbol (calligraphic "L") on our plots. > Does anybody know how to get this symbol in Root? > > thanks, > Dmitry > -- Org: CERN - European Laboratory for Particle Physics. Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910 E-Mail: Olivier.Couet_at_cern.ch Phone: +41 22 7676522 WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7670300Received on Thu Nov 17 2005 - 05:07:10 MET
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:13 MET