GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Nice plots.
Nice plots. [message #7119] Fri, 25 July 2008 13:32 Go to next message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: 141.30.85*
Hi all,

I know everyone likes his/her own style of plots. But anyway I'll share my stuff: In pandaroot/macro/mvd/Tools.C you will find a few helpful functions. Especially I'd like to point out that we had two frameworks ago a common root styleset for panda which the collaboration agreed on. I reanimated this one but could not resist to make some few changes to suit my taste.

To use it in a macro do:
  gROOT->LoadMacro(" ... mvd/Tools.C");
  LoadPandaStyle();

To have nice 2d histograms with a smooth palette use
  DrawNice2DHisto(hisxy);

index.php?t=getfile&id=4643&private=0

And finally for multiple Histograms in one plot (picture below)
  hisClustSize->Draw();
  hisClustSizeBot->SetLineColor(kRed);
  hisClustSizeTop->SetLineColor(kBlue);
  hisClustSizeBot->Draw("sames");
  hisClustSizeTop->Draw("sames");
  can7->Update();
  TPad* mypad=(TPad*)gPad;
  BetterStatBox(mypad);

index.php?t=getfile&id=4642&private=0



Feel free to contribute.

Greetings from Dresden, Ralf.

[Updated on: Fri, 25 July 2008 13:33]

Report message to a moderator

Re: Nice plots. [message #7125 is a reply to message #7119] Fri, 25 July 2008 16:37 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *physik.uni-giessen.de
My opinion.,
I think it is a very good thing to have a fixed style for our plots.

About your style, the only thing is that the numbers on the axis labels are maybe too much thin, difficult to read when you put them on a presentation, for somebody who is not sitting on the first seats. Maybe we need something thicker.

Previous Topic: New classes for event display
Next Topic: Detector ID.
Goto Forum:
  


Current Time: Mon Nov 18 16:06:05 CET 2024

Total time taken to generate the page: 0.00764 seconds