28 const UInt_t kTakeStyle = BIT(17);
142 TStyle::TStyle() :TNamed()
194 TStyle::TStyle(
const char *name,
const char *title)
196 TString style_name = name;
198 SetNameTitle(style_name, title);
201 delete gROOT->GetStyle(style_name);
206 R__LOCKGUARD(gROOTMutex);
207 gROOT->GetListOfStyles()->Add(
this);
210 if (strcmp(style_name,
"Modern") == 0) {
212 SetFrameBorderMode(0);
213 SetFrameFillColor(0);
214 SetCanvasBorderMode(0);
220 SetLabelFont(42,
"x");
221 SetTitleFont(42,
"x");
222 SetLabelFont(42,
"y");
223 SetTitleFont(42,
"y");
224 SetLabelFont(42,
"z");
225 SetTitleFont(42,
"z");
227 SetLabelSize(0.035,
"x");
228 SetTitleSize(0.035,
"x");
229 SetLabelSize(0.035,
"y");
230 SetTitleSize(0.035,
"y");
231 SetLabelSize(0.035,
"z");
232 SetTitleSize(0.035,
"z");
233 SetTitleSize(0.050,
"");
236 SetTitleBorderSize(0);
237 SetTitleFillColor(0);
239 SetTitleOffset(0.,
"Y");
240 SetStatBorderSize(1);
243 SetHistLineColor(kBlue+2);
244 SetLegendBorderSize(1);
245 SetLegendFillColor(0);
247 SetLegendTextSize(0.);
251 if (strcmp(style_name,
"Plain") == 0) {
253 SetFrameBorderMode(0);
254 SetFrameFillColor(0);
255 SetCanvasBorderMode(0);
259 SetTitleFillColor(0);
260 SetTitleBorderSize(1);
262 SetStatBorderSize(1);
263 SetLegendBorderSize(1);
266 if (strcmp(style_name,
"Bold") == 0) {
270 SetCanvasBorderMode(0);
271 SetFrameLineWidth(3);
272 SetFrameFillColor(10);
276 SetPadBottomMargin(0.15);
277 SetPadLeftMargin(0.15);
279 SetHistLineColor(kRed);
281 SetFuncColor(kGreen);
283 SetLabelSize(0.05,
"xyz");
284 SetLabelOffset(0.01,
"y");
285 SetLabelColor(kBlue,
"xy");
286 SetTitleSize(0.06,
"xyz");
287 SetTitleOffset(1.3,
"Y");
288 SetTitleFillColor(10);
289 SetTitleTextColor(kBlue);
293 if (strcmp(style_name,
"Video") == 0) {
297 SetCanvasBorderMode(0);
298 SetFrameLineWidth(3);
299 SetFrameFillColor(10);
303 SetPadBottomMargin(0.2);
304 SetPadLeftMargin(0.2);
306 SetHistLineColor(kRed);
307 SetLabelSize(0.06,
"xyz");
308 SetLabelColor(kBlue,
"xyz");
309 SetTitleSize(0.08,
"xyz");
310 SetTitleFillColor(10);
311 SetTitleTextColor(kBlue);
314 SetFuncColor(kGreen);
318 if (strcmp(style_name,
"Pub") == 0) {
324 SetCanvasBorderMode(0);
325 SetFrameLineWidth(3);
326 SetFrameFillColor(10);
330 SetPadBottomMargin(0.15);
331 SetPadLeftMargin(0.15);
333 SetHistLineColor(kRed);
335 SetFuncColor(kGreen);
337 SetLabelSize(0.05,
"xyz");
338 SetLabelOffset(0.01,
"y");
339 SetLabelColor(kBlack,
"xyz");
340 SetTitleSize(0.06,
"xyz");
341 SetTitleOffset(1.3,
"y");
342 SetTitleFillColor(10);
343 SetTitleTextColor(kBlue);
346 if (strcmp(style_name,
"ATLAS") == 0) {
348 SetFrameBorderMode(0);
349 SetFrameFillColor(0);
350 SetCanvasBorderMode(0);
356 SetPadTopMargin(0.05);
357 SetPadRightMargin(0.05);
358 SetPadBottomMargin(0.16);
359 SetPadLeftMargin(0.16);
360 SetTitleXOffset(1.4);
361 SetTitleYOffset(1.4);
366 SetLabelFont(font,
"x");
367 SetTitleFont(font,
"x");
368 SetLabelFont(font,
"y");
369 SetTitleFont(font,
"y");
370 SetLabelFont(font,
"z");
371 SetTitleFont(font,
"z");
372 SetLabelSize(tsize,
"x");
373 SetTitleSize(tsize,
"x");
374 SetLabelSize(tsize,
"y");
375 SetTitleSize(tsize,
"y");
376 SetLabelSize(tsize,
"z");
377 SetTitleSize(tsize,
"z");
380 SetHistLineWidth(2.);
381 SetLineStyleString(2,
"[12 12]");
397 R__LOCKGUARD(gROOTMutex);
398 gROOT->GetListOfStyles()->Remove(
this);
399 if (gStyle ==
this) gStyle = (TStyle*)gROOT->GetListOfStyles()->Last();
405 TStyle::TStyle(
const TStyle &style) : TNamed(style), TAttLine(style), TAttFill(style), TAttMarker(style), TAttText(style)
410 TStyle& TStyle::operator=(
const TStyle& style)
419 void TStyle::Browse(TBrowser *)
427 void TStyle::BuildStyles()
429 TColor *col =
new TColor();
430 new TStyle(
"Plain",
"Plain Style (no colors/fill areas)");
431 new TStyle(
"Bold",
"Bold Style");;
432 new TStyle(
"Video",
"Style for video presentation histograms");
433 new TStyle(
"Pub",
"Style for Publications");
434 new TStyle(
"Classic",
"Classic Style");
435 new TStyle(
"Default",
"Equivalent to Classic");
436 new TStyle(
"Modern",
"Modern Style");
437 new TStyle(
"ATLAS",
"ATLAS Style");
452 void TStyle::Copy(TObject &obj)
const
454 TAttLine::Copy(((TStyle&)obj));
455 TAttFill::Copy(((TStyle&)obj));
456 TAttMarker::Copy(((TStyle&)obj));
457 TAttText::Copy(((TStyle&)obj));
458 fXaxis.Copy(((TStyle&)obj).fXaxis);
459 fYaxis.Copy(((TStyle&)obj).fYaxis);
460 fZaxis.Copy(((TStyle&)obj).fZaxis);
461 fAttDate.Copy(((TStyle&)obj).fAttDate);
462 ((TStyle&)obj).fIsReading = fIsReading;
463 ((TStyle&)obj).fScreenFactor = fScreenFactor;
464 ((TStyle&)obj).fCanvasPreferGL = fCanvasPreferGL;
465 ((TStyle&)obj).fCanvasColor = fCanvasColor;
466 ((TStyle&)obj).fCanvasBorderSize = fCanvasBorderSize;
467 ((TStyle&)obj).fCanvasBorderMode = fCanvasBorderMode;
468 ((TStyle&)obj).fCanvasDefH = fCanvasDefH;
469 ((TStyle&)obj).fCanvasDefW = fCanvasDefW;
470 ((TStyle&)obj).fCanvasDefX = fCanvasDefX;
471 ((TStyle&)obj).fCanvasDefY = fCanvasDefY;
472 ((TStyle&)obj).fPadColor = fPadColor;
473 ((TStyle&)obj).fPadBorderSize = fPadBorderSize;
474 ((TStyle&)obj).fPadBorderMode = fPadBorderMode;
475 ((TStyle&)obj).fPadBottomMargin = fPadBottomMargin;
476 ((TStyle&)obj).fPadTopMargin = fPadTopMargin;
477 ((TStyle&)obj).fPadLeftMargin = fPadLeftMargin;
478 ((TStyle&)obj).fPadRightMargin = fPadRightMargin;
479 ((TStyle&)obj).fPadGridX = fPadGridX;
480 ((TStyle&)obj).fPadGridY = fPadGridY;
481 ((TStyle&)obj).fPadTickX = fPadTickX;
482 ((TStyle&)obj).fPadTickY = fPadTickY;
483 ((TStyle&)obj).fPaperSizeX = fPaperSizeX;
484 ((TStyle&)obj).fPaperSizeY = fPaperSizeY;
485 ((TStyle&)obj).fFuncColor = fFuncColor;
486 ((TStyle&)obj).fFuncStyle = fFuncStyle;
487 ((TStyle&)obj).fFuncWidth = fFuncWidth;
488 ((TStyle&)obj).fGridColor = fGridColor;
489 ((TStyle&)obj).fGridStyle = fGridStyle;
490 ((TStyle&)obj).fGridWidth = fGridWidth;
491 ((TStyle&)obj).fHatchesSpacing = fHatchesSpacing;
492 ((TStyle&)obj).fHatchesLineWidth = fHatchesLineWidth;
493 ((TStyle&)obj).fFrameFillColor = fFrameFillColor;
494 ((TStyle&)obj).fFrameFillStyle = fFrameFillStyle;
495 ((TStyle&)obj).fFrameLineColor = fFrameLineColor;
496 ((TStyle&)obj).fFrameLineStyle = fFrameLineStyle;
497 ((TStyle&)obj).fFrameLineWidth = fFrameLineWidth;
498 ((TStyle&)obj).fFrameBorderSize = fFrameBorderSize;
499 ((TStyle&)obj).fFrameBorderMode = fFrameBorderMode;
500 ((TStyle&)obj).fHistFillColor = fHistFillColor;
501 ((TStyle&)obj).fHistFillStyle = fHistFillStyle;
502 ((TStyle&)obj).fHistLineColor = fHistLineColor;
503 ((TStyle&)obj).fHistLineStyle = fHistLineStyle;
504 ((TStyle&)obj).fHistLineWidth = fHistLineWidth;
505 ((TStyle&)obj).fHistMinimumZero = fHistMinimumZero;
506 ((TStyle&)obj).fHistTopMargin = fHistTopMargin;
507 ((TStyle&)obj).fBarWidth = fBarWidth;
508 ((TStyle&)obj).fBarOffset = fBarOffset;
509 ((TStyle&)obj).fDrawBorder = fDrawBorder;
510 ((TStyle&)obj).fOptLogx = fOptLogx;
511 ((TStyle&)obj).fOptLogy = fOptLogy;
512 ((TStyle&)obj).fOptLogz = fOptLogz;
513 ((TStyle&)obj).fOptDate = fOptDate;
514 ((TStyle&)obj).fOptFit = fOptFit;
515 ((TStyle&)obj).fOptStat = fOptStat;
516 ((TStyle&)obj).fOptTitle = fOptTitle;
517 ((TStyle&)obj).fEndErrorSize = fEndErrorSize;
518 ((TStyle&)obj).fErrorX = fErrorX;
519 ((TStyle&)obj).fStatColor = fStatColor;
520 ((TStyle&)obj).fStatTextColor = fStatTextColor;
521 ((TStyle&)obj).fStatBorderSize = fStatBorderSize;
522 ((TStyle&)obj).fStatFont = fStatFont;
523 ((TStyle&)obj).fStatFontSize = fStatFontSize;
524 ((TStyle&)obj).fStatStyle = fStatStyle;
525 ((TStyle&)obj).fStatFormat = fStatFormat;
526 ((TStyle&)obj).fStatW = fStatW;
527 ((TStyle&)obj).fStatH = fStatH ;
528 ((TStyle&)obj).fStatX = fStatX;
529 ((TStyle&)obj).fStatY = fStatY;
530 ((TStyle&)obj).fTitleAlign = fTitleAlign;
531 ((TStyle&)obj).fTitleColor = fTitleColor;
532 ((TStyle&)obj).fTitleTextColor = fTitleTextColor;
533 ((TStyle&)obj).fTitleFont = fTitleFont;
534 ((TStyle&)obj).fTitleFontSize = fTitleFontSize;
535 ((TStyle&)obj).fTitleStyle = fTitleStyle;
536 ((TStyle&)obj).fTitleBorderSize = fTitleBorderSize;
537 ((TStyle&)obj).fTitleW = fTitleW;
538 ((TStyle&)obj).fTitleH = fTitleH;
539 ((TStyle&)obj).fTitleX = fTitleX;
540 ((TStyle&)obj).fTitleY = fTitleY;
541 ((TStyle&)obj).fDateX = fDateX;
542 ((TStyle&)obj).fDateY = fDateY;
543 ((TStyle&)obj).fFitFormat = fFitFormat;
544 ((TStyle&)obj).fPaintTextFormat = fPaintTextFormat;
545 ((TStyle&)obj).fShowEventStatus = fShowEventStatus;
546 ((TStyle&)obj).fShowEditor = fShowEditor;
547 ((TStyle&)obj).fShowToolBar = fShowToolBar;
548 ((TStyle&)obj).fLegoInnerR = fLegoInnerR;
549 ((TStyle&)obj).fStripDecimals = fStripDecimals;
550 ((TStyle&)obj).fNumberContours = fNumberContours;
551 ((TStyle&)obj).fLegendBorderSize = fLegendBorderSize;
552 ((TStyle&)obj).fLegendFillColor = fLegendFillColor;
553 ((TStyle&)obj).fLegendFont = fLegendFont;
554 ((TStyle&)obj).fLegendTextSize = fLegendTextSize;
558 ((TStyle&)obj).fLineStyle[i] = fLineStyle[i];
560 ((TStyle&)obj).fHeaderPS = fHeaderPS;
561 ((TStyle&)obj).fTitlePS = fTitlePS;
562 ((TStyle&)obj).fLineScalePS = fLineScalePS;
563 ((TStyle&)obj).fJoinLinePS = fJoinLinePS;
564 ((TStyle&)obj).fColorModelPS = fColorModelPS;
565 ((TStyle&)obj).fTimeOffset = fTimeOffset;
566 ((TStyle&)obj).fImageScaling = fImageScaling;
573 Int_t TStyle::DistancetoPrimitive(Int_t , Int_t )
575 gPad->SetSelected(
this);
582 void TStyle::Reset(Option_t *opt)
585 TAttLine::ResetAttLine();
586 TAttFill::ResetAttFill();
587 TAttText::ResetAttText();
588 TAttMarker::ResetAttMarker();
591 fXaxis.ResetAttAxis(
"X");
592 fYaxis.ResetAttAxis(
"Y");
593 fZaxis.ResetAttAxis(
"Z");
594 if (gEnv) fCanvasPreferGL = gEnv->GetValue(
"OpenGL.CanvasPreferGL",0);
595 else fCanvasPreferGL = kFALSE;
597 fCanvasBorderSize= 2;
598 fCanvasBorderMode= 1;
603 fPadColor = fCanvasColor;
604 fPadBorderSize = fCanvasBorderSize;
605 fPadBorderMode = fCanvasBorderMode;
606 fPadBottomMargin= 0.1;
608 fPadLeftMargin = 0.1;
609 fPadRightMargin = 0.1;
621 fHatchesLineWidth = 1;
624 fHistFillStyle = 1001;
627 fHistMinimumZero= kFALSE;
628 fHistTopMargin = 0.05;
631 fFrameFillStyle = 1001;
650 fStatColor = fCanvasColor;
662 SetPaintTextFormat();
664 fTitleColor = fCanvasColor;
680 fStripDecimals = kTRUE;
681 fNumberContours = 20;
682 fLegendBorderSize= 4;
684 fLegendTextSize = 0.,
685 fLegendFillColor = 0;
690 fAttDate.SetTextSize(0.025);
691 fAttDate.SetTextAlign(11);
695 SetLineStyleString(1,
" ");
696 SetLineStyleString(2,
"12 12");
697 SetLineStyleString(3,
"4 8");
698 SetLineStyleString(4,
"12 16 4 16");
699 SetLineStyleString(5,
"20 12 4 12");
700 SetLineStyleString(6,
"20 12 4 12 4 12 4 12");
701 SetLineStyleString(7,
"20 20");
702 SetLineStyleString(8,
"20 12 4 12 4 12");
703 SetLineStyleString(9,
"80 20");
704 SetLineStyleString(10,
"80 40 4 40");
705 for (Int_t i=11;i<30;i++) SetLineStyleString(i,
" ");
711 fTimeOffset = 788918400;
713 TString style_name = opt;
715 if (strcmp(style_name,
"Modern") == 0) {
717 SetFrameBorderMode(0);
718 SetFrameFillColor(0);
719 SetCanvasBorderMode(0);
725 SetLabelFont(42,
"x");
726 SetTitleFont(42,
"x");
727 SetLabelFont(42,
"y");
728 SetTitleFont(42,
"y");
729 SetLabelFont(42,
"z");
730 SetTitleFont(42,
"z");
732 SetLabelSize(0.035,
"x");
733 SetTitleSize(0.035,
"x");
734 SetLabelSize(0.035,
"y");
735 SetTitleSize(0.035,
"y");
736 SetLabelSize(0.035,
"z");
737 SetTitleSize(0.035,
"z");
738 SetTitleSize(0.050,
"");
741 SetTitleBorderSize(0);
742 SetTitleFillColor(0);
744 SetTitleOffset(0.,
"Y");
745 SetStatBorderSize(1);
748 SetHistLineColor(kBlue+2);
749 SetLegendBorderSize(1);
750 SetLegendFillColor(0);
752 SetLegendTextSize(0.);
756 if (strcmp(style_name,
"Plain") == 0) {
757 SetFrameBorderMode(0);
758 SetCanvasBorderMode(0);
762 SetTitleFillColor(0);
763 SetTitleBorderSize(1);
765 SetStatBorderSize(1);
766 SetLegendBorderSize(1);
769 if (strcmp(style_name,
"Bold") == 0) {
772 SetCanvasBorderMode(0);
773 SetFrameLineWidth(3);
774 SetFrameFillColor(10);
778 SetPadBottomMargin(0.15);
779 SetPadLeftMargin(0.15);
781 SetHistLineColor(kRed);
783 SetFuncColor(kGreen);
785 SetLabelSize(0.05,
"xyz");
786 SetLabelOffset(0.01,
"y");
787 SetLabelColor(kBlue,
"xy");
788 SetTitleSize(0.06,
"xyz");
789 SetTitleOffset(1.3,
"Y");
790 SetTitleFillColor(10);
791 SetTitleTextColor(kBlue);
795 if (strcmp(style_name,
"Video") == 0) {
798 SetCanvasBorderMode(0);
799 SetFrameLineWidth(3);
800 SetFrameFillColor(10);
804 SetPadBottomMargin(0.2);
805 SetPadLeftMargin(0.2);
807 SetHistLineColor(kRed);
808 SetLabelSize(0.06,
"xyz");
809 SetLabelColor(kBlue,
"xyz");
810 SetTitleSize(0.08,
"xyz");
811 SetTitleFillColor(10);
812 SetTitleTextColor(kBlue);
815 SetFuncColor(kGreen);
819 if (strcmp(style_name,
"Pub") == 0) {
824 SetCanvasBorderMode(0);
825 SetFrameLineWidth(3);
826 SetFrameFillColor(10);
830 SetPadBottomMargin(0.15);
831 SetPadLeftMargin(0.15);
833 SetHistLineColor(kRed);
835 SetFuncColor(kGreen);
837 SetLabelSize(0.05,
"xyz");
838 SetLabelOffset(0.01,
"y");
839 SetLabelColor(kBlack,
"xyz");
840 SetTitleSize(0.06,
"xyz");
841 SetTitleOffset(1.3,
"y");
842 SetTitleFillColor(10);
843 SetTitleTextColor(kBlue);
846 if (strcmp(style_name,
"ATLAS") == 0) {
847 SetFrameBorderMode(0);
848 SetFrameFillColor(0);
849 SetCanvasBorderMode(0);
855 SetPadTopMargin(0.05);
856 SetPadRightMargin(0.05);
857 SetPadBottomMargin(0.16);
858 SetPadLeftMargin(0.16);
859 SetTitleXOffset(1.4);
860 SetTitleYOffset(1.4);
865 SetLabelFont(font,
"x");
866 SetTitleFont(font,
"x");
867 SetLabelFont(font,
"y");
868 SetTitleFont(font,
"y");
869 SetLabelFont(font,
"z");
870 SetTitleFont(font,
"z");
871 SetLabelSize(tsize,
"x");
872 SetTitleSize(tsize,
"x");
873 SetLabelSize(tsize,
"y");
874 SetTitleSize(tsize,
"y");
875 SetLabelSize(tsize,
"z");
876 SetTitleSize(tsize,
"z");
879 SetHistLineWidth(2.);
880 SetLineStyleString(2,
"[12 12]");
895 Int_t TStyle::GetNdivisions( Option_t *axis)
const
897 Int_t ax = AxisChoice(axis);
898 if (ax == 1)
return fXaxis.GetNdivisions();
899 if (ax == 2)
return fYaxis.GetNdivisions();
900 if (ax == 3)
return fZaxis.GetNdivisions();
907 Color_t TStyle::GetAxisColor( Option_t *axis)
const
909 Int_t ax = AxisChoice(axis);
910 if (ax == 1)
return fXaxis.GetAxisColor();
911 if (ax == 2)
return fYaxis.GetAxisColor();
912 if (ax == 3)
return fZaxis.GetAxisColor();
919 Int_t TStyle::GetColorPalette(Int_t i)
const
921 return TColor::GetColorPalette(i);
927 Color_t TStyle::GetLabelColor( Option_t *axis)
const
929 Int_t ax = AxisChoice(axis);
930 if (ax == 1)
return fXaxis.GetLabelColor();
931 if (ax == 2)
return fYaxis.GetLabelColor();
932 if (ax == 3)
return fZaxis.GetLabelColor();
939 Style_t TStyle::GetLabelFont( Option_t *axis)
const
941 Int_t ax = AxisChoice(axis);
942 if (ax == 1)
return fXaxis.GetLabelFont();
943 if (ax == 2)
return fYaxis.GetLabelFont();
944 if (ax == 3)
return fZaxis.GetLabelFont();
951 Float_t TStyle::GetLabelOffset( Option_t *axis)
const
953 Int_t ax = AxisChoice(axis);
954 if (ax == 1)
return fXaxis.GetLabelOffset();
955 if (ax == 2)
return fYaxis.GetLabelOffset();
956 if (ax == 3)
return fZaxis.GetLabelOffset();
963 Float_t TStyle::GetLabelSize( Option_t *axis)
const
965 Int_t ax = AxisChoice(axis);
966 if (ax == 1)
return fXaxis.GetLabelSize();
967 if (ax == 2)
return fYaxis.GetLabelSize();
968 if (ax == 3)
return fZaxis.GetLabelSize();
976 const char *TStyle::GetLineStyleString(Int_t i)
const
978 if (i < 1 || i > 29)
return fLineStyle[0].Data();
979 return fLineStyle[i].Data();
985 Int_t TStyle::GetNumberOfColors()
const
987 return TColor::GetNumberOfColors();
994 void TStyle::GetPaperSize(Float_t &xsize, Float_t &ysize)
const
1003 Float_t TStyle::GetTickLength( Option_t *axis)
const
1005 Int_t ax = AxisChoice(axis);
1006 if (ax == 1)
return fXaxis.GetTickLength();
1007 if (ax == 2)
return fYaxis.GetTickLength();
1008 if (ax == 3)
return fZaxis.GetTickLength();
1015 Color_t TStyle::GetTitleColor( Option_t *axis)
const
1017 Int_t ax = AxisChoice(axis);
1018 if (ax == 1)
return fXaxis.GetTitleColor();
1019 if (ax == 2)
return fYaxis.GetTitleColor();
1020 if (ax == 3)
return fZaxis.GetTitleColor();
1021 return fTitleTextColor;
1027 Style_t TStyle::GetTitleFont( Option_t *axis)
const
1029 Int_t ax = AxisChoice(axis);
1030 if (ax == 1)
return fXaxis.GetTitleFont();
1031 if (ax == 2)
return fYaxis.GetTitleFont();
1032 if (ax == 3)
return fZaxis.GetTitleFont();
1039 Float_t TStyle::GetTitleOffset( Option_t *axis)
const
1041 Int_t ax = AxisChoice(axis);
1042 if (ax == 1)
return fXaxis.GetTitleOffset();
1043 if (ax == 2)
return fYaxis.GetTitleOffset();
1044 if (ax == 3)
return fZaxis.GetTitleOffset();
1051 Float_t TStyle::GetTitleSize( Option_t *axis)
const
1053 Int_t ax = AxisChoice(axis);
1054 if (ax == 1)
return fXaxis.GetTitleSize();
1055 if (ax == 2)
return fYaxis.GetTitleSize();
1056 if (ax == 3)
return fZaxis.GetTitleSize();
1057 return fTitleFontSize;
1063 void TStyle::Paint(Option_t *option)
1065 gROOT->ProcessLine(Form(
"TStyleManager::PaintStyle((TStyle*)0x%lx,\"%s\")",
1066 (ULong_t)
this,option));
1087 void TStyle::SetColorModelPS(Int_t c)
1100 void TStyle::SetHistMinimumZero(Bool_t zero)
1102 fHistMinimumZero = zero;
1121 void TStyle::SetNdivisions(Int_t n, Option_t *axis)
1125 if (opt.Contains(
"x")) fXaxis.SetNdivisions(n);
1126 if (opt.Contains(
"y")) fYaxis.SetNdivisions(n);
1127 if (opt.Contains(
"z")) fZaxis.SetNdivisions(n);
1135 void TStyle::SetAxisColor(Color_t color, Option_t *axis)
1140 if (opt.Contains(
"x")) fXaxis.SetAxisColor(color);
1141 if (opt.Contains(
"y")) fYaxis.SetAxisColor(color);
1142 if (opt.Contains(
"z")) fZaxis.SetAxisColor(color);
1152 void TStyle::SetEndErrorSize(Float_t np)
1154 if (np >= 0) fEndErrorSize = np;
1155 else fEndErrorSize = 0;
1174 void TStyle::SetHeaderPS(
const char *header)
1186 void TStyle::SetIsReading(Bool_t reading)
1188 fIsReading = reading;
1195 void TStyle::SetTitlePS(
const char *pstitle)
1205 void TStyle::SetLabelColor(Color_t color, Option_t *axis)
1210 if (opt.Contains(
"x")) fXaxis.SetLabelColor(color);
1211 if (opt.Contains(
"y")) fYaxis.SetLabelColor(color);
1212 if (opt.Contains(
"z")) fZaxis.SetLabelColor(color);
1225 void TStyle::SetLabelFont(Style_t font, Option_t *axis)
1230 if (opt.Contains(
"x")) fXaxis.SetLabelFont(font);
1231 if (opt.Contains(
"y")) fYaxis.SetLabelFont(font);
1232 if (opt.Contains(
"z")) fZaxis.SetLabelFont(font);
1241 void TStyle::SetLabelOffset(Float_t offset, Option_t *axis)
1246 if (opt.Contains(
"x")) fXaxis.SetLabelOffset(offset);
1247 if (opt.Contains(
"y")) fYaxis.SetLabelOffset(offset);
1248 if (opt.Contains(
"z")) fZaxis.SetLabelOffset(offset);
1256 void TStyle::SetLabelSize(Float_t size, Option_t *axis)
1261 if (opt.Contains(
"x")) fXaxis.SetLabelSize(size);
1262 if (opt.Contains(
"y")) fYaxis.SetLabelSize(size);
1263 if (opt.Contains(
"z")) fZaxis.SetLabelSize(size);
1295 void TStyle::SetLineStyleString(Int_t i,
const char *text)
1299 Int_t nch = strlen(text);
1300 char *st =
new char[nch+10];
1301 snprintf(st,nch+10,
" ");
1302 strlcat(st,text,nch+10);
1303 l = strstr(st,
"[");
if (l) l[0] =
' ';
1304 l = strstr(st,
"]");
if (l) l[0] =
' ';
1305 if (i >= 1 && i <= 29) fLineStyle[i] = st;
1312 void TStyle::SetNumberContours(Int_t number)
1314 if (number > 0 && number < 1000) {
1315 fNumberContours = number;
1319 Error(
"SetNumberContours",
"Illegal number of contours: %d, must be > 0 and < 1000",number);
1358 void TStyle::SetOptDate(Int_t optdate)
1361 Int_t mode = optdate%10;
1365 fAttDate.SetTextAlign(11);
1370 fAttDate.SetTextAlign(31);
1375 fAttDate.SetTextAlign(33);
1402 void TStyle::SetOptFit(Int_t mode)
1407 TIter next(gPad->GetListOfPrimitives());
1408 while ((obj = next())) {
1409 TObject *stats = obj->FindObject(
"stats");
1410 if (stats) stats->SetBit(kTakeStyle);
1412 gPad->Modified(); gPad->Update();
1450 void TStyle::SetOptStat(Int_t mode)
1455 TIter next(gPad->GetListOfPrimitives());
1456 while ((obj = next())) {
1457 TObject *stats = obj->FindObject(
"stats");
1458 if (stats) stats->SetBit(kTakeStyle);
1460 gPad->Modified(); gPad->Update();
1487 void TStyle::SetOptStat(Option_t *stat)
1493 if (opt.Contains(
"n")) mode+=1;
1494 if (opt.Contains(
"e")) mode+=10;
1495 if (opt.Contains(
"m")) mode+=100;
1496 if (opt.Contains(
"M")) mode+=200;
1497 if (opt.Contains(
"r")) mode+=1000;
1498 if (opt.Contains(
"R")) mode+=2000;
1499 if (opt.Contains(
"u")) mode+=10000;
1500 if (opt.Contains(
"o")) mode+=100000;
1501 if (opt.Contains(
"i")) mode+=1000000;
1502 if (opt.Contains(
"I")) mode+=2000000;
1503 if (opt.Contains(
"s")) mode+=10000000;
1504 if (opt.Contains(
"S")) mode+=20000000;
1505 if (opt.Contains(
"k")) mode+=100000000;
1506 if (opt.Contains(
"K")) mode+=200000000;
1507 if (mode == 1) mode = 1000000001;
1515 void TStyle::SetPaperSize(EPaperSize size)
1519 SetPaperSize(20, 26);
1522 SetPaperSize(20, 24);
1525 Error(
"SetPaperSize",
"illegal paper size %d\n", (
int)size);
1535 void TStyle::SetPaperSize(Float_t xsize, Float_t ysize)
1537 fPaperSizeX = xsize;
1538 fPaperSizeY = ysize;
1546 void TStyle::SetTickLength(Float_t length, Option_t *axis)
1551 if (opt.Contains(
"x")) fXaxis.SetTickLength(length);
1552 if (opt.Contains(
"y")) fYaxis.SetTickLength(length);
1553 if (opt.Contains(
"z")) fZaxis.SetTickLength(length);
1565 void TStyle::SetTitleColor(Color_t color, Option_t *axis)
1570 Bool_t set = kFALSE;
1571 if (opt.Contains(
"x")) {fXaxis.SetTitleColor(color); set = kTRUE;}
1572 if (opt.Contains(
"y")) {fYaxis.SetTitleColor(color); set = kTRUE;}
1573 if (opt.Contains(
"z")) {fZaxis.SetTitleColor(color); set = kTRUE;}
1574 if (!set) fTitleColor = color;
1586 void TStyle::SetTitleFont(Style_t font, Option_t *axis)
1591 Bool_t set = kFALSE;
1592 if (opt.Contains(
"x")) {fXaxis.SetTitleFont(font); set = kTRUE;}
1593 if (opt.Contains(
"y")) {fYaxis.SetTitleFont(font); set = kTRUE;}
1594 if (opt.Contains(
"z")) {fZaxis.SetTitleFont(font); set = kTRUE;}
1595 if (!set) fTitleFont = font;
1609 void TStyle::SetTitleOffset(Float_t offset, Option_t *axis)
1614 if (opt.Contains(
"x")) fXaxis.SetTitleOffset(offset);
1615 if (opt.Contains(
"y")) fYaxis.SetTitleOffset(offset);
1616 if (opt.Contains(
"z")) fZaxis.SetTitleOffset(offset);
1628 void TStyle::SetTitleSize(Float_t size, Option_t *axis)
1633 Bool_t set = kFALSE;
1634 if (opt.Contains(
"x")) {fXaxis.SetTitleSize(size); set = kTRUE;}
1635 if (opt.Contains(
"y")) {fYaxis.SetTitleSize(size); set = kTRUE;}
1636 if (opt.Contains(
"z")) {fZaxis.SetTitleSize(size); set = kTRUE;}
1637 if (!set) fTitleFontSize = size;
1643 void TStyle::SetPalette(Int_t ncolors, Int_t *colors, Float_t alpha)
1645 TColor::SetPalette(ncolors,colors,alpha);
1661 void TStyle::SetTimeOffset(Double_t toffset)
1663 fTimeOffset = toffset;
1674 void TStyle::SetStripDecimals(Bool_t strip)
1676 fStripDecimals = strip;
1682 void TStyle::SaveSource(
const char *filename, Option_t *option)
1685 TString ff = strlen(filename) ? filename :
"Rootstyl.C";
1688 const char *fname = gSystem->BaseName(ff);
1689 Int_t lenfname = strlen(fname);
1690 char *sname =
new char[lenfname + 1];
1692 while ((i < lenfname) && (fname[i] !=
'.')) {
1693 sname[i] = fname[i];
1696 if (i == lenfname) ff +=
".C";
1701 out.open(ff.Data(), std::ios::out);
1704 Error(
"SaveSource",
"cannot open file: %s", ff.Data());
1710 out <<
"// Mainframe macro generated from application: " << gApplication->Argv(0) << std::endl;
1711 out <<
"// By ROOT version " << gROOT->GetVersion() <<
" on " << t.AsSQLString() << std::endl;
1717 out <<
"#if !defined( __CINT__) || defined (__MAKECINT__)" << std::endl << std::endl;
1718 out <<
"#ifndef ROOT_TStyle" << std::endl;
1719 out <<
"#include " << quote <<
"TStyle.h" << quote << std::endl;
1720 out <<
"#endif" << std::endl;
1721 out << std::endl <<
"#endif" << std::endl;
1725 out <<
"void " << sname <<
"()" << std::endl;
1726 out <<
"{" << std::endl;
1729 TStyle::SavePrimitive(out, option);
1731 out <<
"}" << std::endl;
1734 printf(
" C++ macro file %s has been generated\n", gSystem->BaseName(ff));
1740 void TStyle::SavePrimitive(std::ostream &out, Option_t * )
1744 out <<
" // Add the saved style to the current ROOT session." << std::endl;
1746 out<<
" "<<
"delete gROOT->GetStyle("<<quote<<GetName()<<quote<<
");"<< std::endl;
1748 out<<
" "<<
"TStyle *tmpStyle = new TStyle("
1749 << quote << GetName() << quote <<
", "
1750 << quote << GetTitle() << quote <<
");" << std::endl;
1753 out<<
" "<<
"tmpStyle->SetNdivisions(" <<GetNdivisions(
"x") <<
", \"x\");"<<std::endl;
1754 out<<
" "<<
"tmpStyle->SetNdivisions(" <<GetNdivisions(
"y") <<
", \"y\");"<<std::endl;
1755 out<<
" "<<
"tmpStyle->SetNdivisions(" <<GetNdivisions(
"z") <<
", \"z\");"<<std::endl;
1756 out<<
" "<<
"tmpStyle->SetAxisColor(" <<GetAxisColor(
"x") <<
", \"x\");"<<std::endl;
1757 out<<
" "<<
"tmpStyle->SetAxisColor(" <<GetAxisColor(
"y") <<
", \"y\");"<<std::endl;
1758 out<<
" "<<
"tmpStyle->SetAxisColor(" <<GetAxisColor(
"z") <<
", \"z\");"<<std::endl;
1759 out<<
" "<<
"tmpStyle->SetLabelColor(" <<GetLabelColor(
"x") <<
", \"x\");"<<std::endl;
1760 out<<
" "<<
"tmpStyle->SetLabelColor(" <<GetLabelColor(
"y") <<
", \"y\");"<<std::endl;
1761 out<<
" "<<
"tmpStyle->SetLabelColor(" <<GetLabelColor(
"z") <<
", \"z\");"<<std::endl;
1762 out<<
" "<<
"tmpStyle->SetLabelFont(" <<GetLabelFont(
"x") <<
", \"x\");"<<std::endl;
1763 out<<
" "<<
"tmpStyle->SetLabelFont(" <<GetLabelFont(
"y") <<
", \"y\");"<<std::endl;
1764 out<<
" "<<
"tmpStyle->SetLabelFont(" <<GetLabelFont(
"z") <<
", \"z\");"<<std::endl;
1765 out<<
" "<<
"tmpStyle->SetLabelOffset("<<GetLabelOffset(
"x")<<
", \"x\");"<<std::endl;
1766 out<<
" "<<
"tmpStyle->SetLabelOffset("<<GetLabelOffset(
"y")<<
", \"y\");"<<std::endl;
1767 out<<
" "<<
"tmpStyle->SetLabelOffset("<<GetLabelOffset(
"z")<<
", \"z\");"<<std::endl;
1768 out<<
" "<<
"tmpStyle->SetLabelSize(" <<GetLabelSize(
"x") <<
", \"x\");"<<std::endl;
1769 out<<
" "<<
"tmpStyle->SetLabelSize(" <<GetLabelSize(
"y") <<
", \"y\");"<<std::endl;
1770 out<<
" "<<
"tmpStyle->SetLabelSize(" <<GetLabelSize(
"z") <<
", \"z\");"<<std::endl;
1771 out<<
" "<<
"tmpStyle->SetTickLength(" <<GetTickLength(
"x") <<
", \"x\");"<<std::endl;
1772 out<<
" "<<
"tmpStyle->SetTickLength(" <<GetTickLength(
"y") <<
", \"y\");"<<std::endl;
1773 out<<
" "<<
"tmpStyle->SetTickLength(" <<GetTickLength(
"z") <<
", \"z\");"<<std::endl;
1774 out<<
" "<<
"tmpStyle->SetTitleOffset("<<GetTitleOffset(
"x")<<
", \"x\");"<<std::endl;
1775 out<<
" "<<
"tmpStyle->SetTitleOffset("<<GetTitleOffset(
"y")<<
", \"y\");"<<std::endl;
1776 out<<
" "<<
"tmpStyle->SetTitleOffset("<<GetTitleOffset(
"z")<<
", \"z\");"<<std::endl;
1777 out<<
" "<<
"tmpStyle->SetTitleSize(" <<GetTitleSize(
"x") <<
", \"x\");"<<std::endl;
1778 out<<
" "<<
"tmpStyle->SetTitleSize(" <<GetTitleSize(
"y") <<
", \"y\");"<<std::endl;
1779 out<<
" "<<
"tmpStyle->SetTitleSize(" <<GetTitleSize(
"z") <<
", \"z\");"<<std::endl;
1780 out<<
" "<<
"tmpStyle->SetTitleColor(" <<GetTitleColor(
"x") <<
", \"x\");"<<std::endl;
1781 out<<
" "<<
"tmpStyle->SetTitleColor(" <<GetTitleColor(
"y") <<
", \"y\");"<<std::endl;
1782 out<<
" "<<
"tmpStyle->SetTitleColor(" <<GetTitleColor(
"z") <<
", \"z\");"<<std::endl;
1783 out<<
" "<<
"tmpStyle->SetTitleFont(" <<GetTitleFont(
"x") <<
", \"x\");"<<std::endl;
1784 out<<
" "<<
"tmpStyle->SetTitleFont(" <<GetTitleFont(
"y") <<
", \"y\");"<<std::endl;
1785 out<<
" "<<
"tmpStyle->SetTitleFont(" <<GetTitleFont(
"z") <<
", \"z\");"<<std::endl;
1787 out<<
" "<<
"tmpStyle->SetBarWidth(" <<GetBarWidth() <<
");"<<std::endl;
1788 out<<
" "<<
"tmpStyle->SetBarOffset(" <<GetBarOffset() <<
");"<<std::endl;
1789 out<<
" "<<
"tmpStyle->SetDrawBorder(" <<GetDrawBorder() <<
");"<<std::endl;
1790 out<<
" "<<
"tmpStyle->SetOptLogx(" <<GetOptLogx() <<
");"<<std::endl;
1791 out<<
" "<<
"tmpStyle->SetOptLogy(" <<GetOptLogy() <<
");"<<std::endl;
1792 out<<
" "<<
"tmpStyle->SetOptLogz(" <<GetOptLogz() <<
");"<<std::endl;
1793 out<<
" "<<
"tmpStyle->SetOptDate(" <<GetOptDate() <<
");"<<std::endl;
1794 out<<
" "<<
"tmpStyle->SetOptStat(" <<GetOptStat() <<
");"<<std::endl;
1796 if (GetOptTitle()) out <<
" tmpStyle->SetOptTitle(kTRUE);" << std::endl;
1797 else out <<
" tmpStyle->SetOptTitle(kFALSE);" << std::endl;
1798 out<<
" "<<
"tmpStyle->SetOptFit(" <<GetOptFit() <<
");"<<std::endl;
1799 out<<
" "<<
"tmpStyle->SetNumberContours(" <<GetNumberContours() <<
");"<<std::endl;
1802 out<<
" "<<
"tmpStyle->GetAttDate()->SetTextFont(" <<GetAttDate()->GetTextFont() <<
");"<<std::endl;
1803 out<<
" "<<
"tmpStyle->GetAttDate()->SetTextSize(" <<GetAttDate()->GetTextSize() <<
");"<<std::endl;
1804 out<<
" "<<
"tmpStyle->GetAttDate()->SetTextAngle("<<GetAttDate()->GetTextAngle()<<
");"<<std::endl;
1805 out<<
" "<<
"tmpStyle->GetAttDate()->SetTextAlign("<<GetAttDate()->GetTextAlign()<<
");"<<std::endl;
1806 out<<
" "<<
"tmpStyle->GetAttDate()->SetTextColor("<<GetAttDate()->GetTextColor()<<
");"<<std::endl;
1808 out<<
" "<<
"tmpStyle->SetDateX(" <<GetDateX() <<
");"<<std::endl;
1809 out<<
" "<<
"tmpStyle->SetDateY(" <<GetDateY() <<
");"<<std::endl;
1810 out<<
" "<<
"tmpStyle->SetEndErrorSize(" <<GetEndErrorSize() <<
");"<<std::endl;
1811 out<<
" "<<
"tmpStyle->SetErrorX(" <<GetErrorX() <<
");"<<std::endl;
1812 out<<
" "<<
"tmpStyle->SetFuncColor(" <<GetFuncColor() <<
");"<<std::endl;
1813 out<<
" "<<
"tmpStyle->SetFuncStyle(" <<GetFuncStyle() <<
");"<<std::endl;
1814 out<<
" "<<
"tmpStyle->SetFuncWidth(" <<GetFuncWidth() <<
");"<<std::endl;
1815 out<<
" "<<
"tmpStyle->SetGridColor(" <<GetGridColor() <<
");"<<std::endl;
1816 out<<
" "<<
"tmpStyle->SetGridStyle(" <<GetGridStyle() <<
");"<<std::endl;
1817 out<<
" "<<
"tmpStyle->SetGridWidth(" <<GetGridWidth() <<
");"<<std::endl;
1818 out<<
" "<<
"tmpStyle->SetLegendBorderSize("<<GetLegendBorderSize()<<
");"<<std::endl;
1819 out<<
" "<<
"tmpStyle->SetLegendFillColor(" <<GetLegendFillColor() <<
");"<<std::endl;
1820 out<<
" "<<
"tmpStyle->SetLegendFont(" <<GetLegendFont() <<
");"<<std::endl;
1821 out<<
" "<<
"tmpStyle->SetLegendTextSize(" <<GetLegendTextSize() <<
");"<<std::endl;
1822 out<<
" "<<
"tmpStyle->SetHatchesLineWidth("<<GetHatchesLineWidth()<<
");"<<std::endl;
1823 out<<
" "<<
"tmpStyle->SetHatchesSpacing(" <<GetHatchesSpacing() <<
");"<<std::endl;
1824 out<<
" "<<
"tmpStyle->SetFrameFillColor(" <<GetFrameFillColor() <<
");"<<std::endl;
1825 out<<
" "<<
"tmpStyle->SetFrameLineColor(" <<GetFrameLineColor() <<
");"<<std::endl;
1826 out<<
" "<<
"tmpStyle->SetFrameFillStyle(" <<GetFrameFillStyle() <<
");"<<std::endl;
1827 out<<
" "<<
"tmpStyle->SetFrameLineStyle(" <<GetFrameLineStyle() <<
");"<<std::endl;
1828 out<<
" "<<
"tmpStyle->SetFrameLineWidth(" <<GetFrameLineWidth() <<
");"<<std::endl;
1829 out<<
" "<<
"tmpStyle->SetFrameBorderSize(" <<GetFrameBorderSize() <<
");"<<std::endl;
1830 out<<
" "<<
"tmpStyle->SetFrameBorderMode(" <<GetFrameBorderMode() <<
");"<<std::endl;
1831 out<<
" "<<
"tmpStyle->SetHistFillColor(" <<GetHistFillColor() <<
");"<<std::endl;
1832 out<<
" "<<
"tmpStyle->SetHistLineColor(" <<GetHistLineColor() <<
");"<<std::endl;
1833 out<<
" "<<
"tmpStyle->SetHistFillStyle(" <<GetHistFillStyle() <<
");"<<std::endl;
1834 out<<
" "<<
"tmpStyle->SetHistLineStyle(" <<GetHistLineStyle() <<
");"<<std::endl;
1835 out<<
" "<<
"tmpStyle->SetHistLineWidth(" <<GetHistLineWidth() <<
");"<<std::endl;
1836 if (GetHistMinimumZero()) out<<
" tmpStyle->SetHistMinimumZero(kTRUE);" <<std::endl;
1837 else out<<
" tmpStyle->SetHistMinimumZero(kFALSE);"<<std::endl;
1838 if (GetCanvasPreferGL()) out<<
" tmpStyle->SetCanvasPreferGL(kTRUE);" <<std::endl;
1839 else out<<
" tmpStyle->SetCanvasPreferGL(kFALSE);"<<std::endl;
1840 out<<
" "<<
"tmpStyle->SetCanvasColor(" <<GetCanvasColor() <<
");"<<std::endl;
1841 out<<
" "<<
"tmpStyle->SetCanvasBorderSize("<<GetCanvasBorderSize()<<
");"<<std::endl;
1842 out<<
" "<<
"tmpStyle->SetCanvasBorderMode("<<GetCanvasBorderMode()<<
");"<<std::endl;
1843 out<<
" "<<
"tmpStyle->SetCanvasDefH(" <<GetCanvasDefH() <<
");"<<std::endl;
1844 out<<
" "<<
"tmpStyle->SetCanvasDefW(" <<GetCanvasDefW() <<
");"<<std::endl;
1845 out<<
" "<<
"tmpStyle->SetCanvasDefX(" <<GetCanvasDefX() <<
");"<<std::endl;
1846 out<<
" "<<
"tmpStyle->SetCanvasDefY(" <<GetCanvasDefY() <<
");"<<std::endl;
1847 out<<
" "<<
"tmpStyle->SetPadColor(" <<GetPadColor() <<
");"<<std::endl;
1848 out<<
" "<<
"tmpStyle->SetPadBorderSize(" <<GetPadBorderSize() <<
");"<<std::endl;
1849 out<<
" "<<
"tmpStyle->SetPadBorderMode(" <<GetPadBorderMode() <<
");"<<std::endl;
1850 out<<
" "<<
"tmpStyle->SetPadBottomMargin(" <<GetPadBottomMargin() <<
");"<<std::endl;
1851 out<<
" "<<
"tmpStyle->SetPadTopMargin(" <<GetPadTopMargin() <<
");"<<std::endl;
1852 out<<
" "<<
"tmpStyle->SetPadLeftMargin(" <<GetPadLeftMargin() <<
");"<<std::endl;
1853 out<<
" "<<
"tmpStyle->SetPadRightMargin(" <<GetPadRightMargin() <<
");"<<std::endl;
1854 if (GetPadGridX()) out<<
" tmpStyle->SetPadGridX(kTRUE);" <<std::endl;
1855 else out<<
" tmpStyle->SetPadGridX(kFALSE);"<<std::endl;
1856 if (GetPadGridY()) out<<
" tmpStyle->SetPadGridY(kTRUE);" <<std::endl;
1857 else out<<
" tmpStyle->SetPadGridY(kFALSE);"<<std::endl;
1858 out<<
" "<<
"tmpStyle->SetPadTickX(" <<GetPadTickX() <<
");"<<std::endl;
1859 out<<
" "<<
"tmpStyle->SetPadTickY(" <<GetPadTickY() <<
");"<<std::endl;
1862 out<<
" "<<
"tmpStyle->SetPaperSize(" <<fPaperSizeX <<
", "
1863 <<fPaperSizeY <<
");"<<std::endl;
1865 out<<
" "<<
"tmpStyle->SetScreenFactor(" <<GetScreenFactor() <<
");"<<std::endl;
1866 out<<
" "<<
"tmpStyle->SetStatColor(" <<GetStatColor() <<
");"<<std::endl;
1867 out<<
" "<<
"tmpStyle->SetStatTextColor(" <<GetStatTextColor() <<
");"<<std::endl;
1868 out<<
" "<<
"tmpStyle->SetStatBorderSize(" <<GetStatBorderSize() <<
");"<<std::endl;
1869 out<<
" "<<
"tmpStyle->SetStatFont(" <<GetStatFont() <<
");"<<std::endl;
1870 out<<
" "<<
"tmpStyle->SetStatFontSize(" <<GetStatFontSize() <<
");"<<std::endl;
1871 out<<
" "<<
"tmpStyle->SetStatStyle(" <<GetStatStyle() <<
");"<<std::endl;
1872 out<<
" "<<
"tmpStyle->SetStatFormat(" <<quote << GetStatFormat()
1873 <<quote <<
");"<<std::endl;
1874 out<<
" "<<
"tmpStyle->SetStatX(" <<GetStatX() <<
");"<<std::endl;
1875 out<<
" "<<
"tmpStyle->SetStatY(" <<GetStatY() <<
");"<<std::endl;
1876 out<<
" "<<
"tmpStyle->SetStatW(" <<GetStatW() <<
");"<<std::endl;
1877 out<<
" "<<
"tmpStyle->SetStatH(" <<GetStatH() <<
");"<<std::endl;
1878 if (GetStripDecimals()) out<<
" tmpStyle->SetStripDecimals(kTRUE);" <<std::endl;
1879 else out<<
" tmpStyle->SetStripDecimals(kFALSE);"<<std::endl;
1880 out<<
" "<<
"tmpStyle->SetTitleAlign(" <<GetTitleAlign() <<
");"<<std::endl;
1881 out<<
" "<<
"tmpStyle->SetTitleFillColor(" <<GetTitleFillColor() <<
");"<<std::endl;
1882 out<<
" "<<
"tmpStyle->SetTitleTextColor(" <<GetTitleTextColor() <<
");"<<std::endl;
1883 out<<
" "<<
"tmpStyle->SetTitleBorderSize("<<GetTitleBorderSize()<<
");"<<std::endl;
1884 out<<
" "<<
"tmpStyle->SetTitleFont(" <<GetTitleFont() <<
");"<<std::endl;
1885 out<<
" "<<
"tmpStyle->SetTitleFontSize(" <<GetTitleFontSize() <<
");"<<std::endl;
1886 out<<
" "<<
"tmpStyle->SetTitleStyle(" <<GetTitleStyle() <<
");"<<std::endl;
1887 out<<
" "<<
"tmpStyle->SetTitleX(" <<GetTitleX() <<
");"<<std::endl;
1888 out<<
" "<<
"tmpStyle->SetTitleY(" <<GetTitleY() <<
");"<<std::endl;
1889 out<<
" "<<
"tmpStyle->SetTitleW(" <<GetTitleW() <<
");"<<std::endl;
1890 out<<
" "<<
"tmpStyle->SetTitleH(" <<GetTitleH() <<
");"<<std::endl;
1891 out<<
" "<<
"tmpStyle->SetLegoInnerR(" <<GetLegoInnerR() <<
");"<<std::endl;
1895 out<<
" "<<
"Int_t fPaletteColor[" <<GetNumberOfColors() <<
"] = {";
1896 for (Int_t ci=0; ci<GetNumberOfColors()-1; ++ci) {
1898 out<<std::endl<<
" ";
1899 out<<GetColorPalette(ci)<<
", ";
1901 out<<GetColorPalette(GetNumberOfColors() - 1) <<
"};"<<std::endl;
1902 out<<
" "<<
"tmpStyle->SetPalette(" << GetNumberOfColors()
1903 <<
", fPaletteColor);" << std::endl;
1907 out<<
" "<<
"TString fLineStyleArrayTmp[30] = {";
1908 for (Int_t li=0; li<29; ++li) {
1910 out<<std::endl<<
" ";
1911 out<<quote << fLineStyle[li].Data() << quote <<
", ";
1913 out<<quote<<fLineStyle[29].Data()<<quote<<
"};"<<std::endl;
1914 out<<
" "<<
"for (Int_t i=0; i<30; i++)"<<std::endl;
1915 out<<
" "<<
" tmpStyle->SetLineStyleString(i, fLineStyleArrayTmp[i]);"<<std::endl;
1918 out<<
" "<<
"tmpStyle->SetHeaderPS(" <<quote<<GetHeaderPS()
1919 <<quote <<
");"<<std::endl;
1920 out<<
" "<<
"tmpStyle->SetTitlePS(" <<quote<<GetTitlePS()
1921 <<quote <<
");"<<std::endl;
1922 out<<
" "<<
"tmpStyle->SetFitFormat(" <<quote<<GetFitFormat()
1923 <<quote <<
");"<<std::endl;
1924 out<<
" "<<
"tmpStyle->SetPaintTextFormat("<<quote<<GetPaintTextFormat()
1925 <<quote <<
");"<<std::endl;
1926 out<<
" "<<
"tmpStyle->SetLineScalePS(" <<GetLineScalePS() <<
");"<<std::endl;
1927 out<<
" "<<
"tmpStyle->SetJoinLinePS(" <<GetJoinLinePS() <<
");"<<std::endl;
1928 out<<
" "<<
"tmpStyle->SetColorModelPS(" <<GetColorModelPS() <<
");"<<std::endl;
1929 out<<
" "<<Form(
"tmpStyle->SetTimeOffset(%9.0f);", GetTimeOffset()) <<std::endl;
1934 out <<
" " <<
"tmpStyle->SetLineColor(" <<GetLineColor() <<
");" <<std::endl;
1935 out <<
" " <<
"tmpStyle->SetLineStyle(" <<GetLineStyle() <<
");" <<std::endl;
1936 out <<
" " <<
"tmpStyle->SetLineWidth(" <<GetLineWidth() <<
");" <<std::endl;
1939 out <<
" " <<
"tmpStyle->SetFillColor(" <<GetFillColor() <<
");" <<std::endl;
1940 out <<
" " <<
"tmpStyle->SetFillStyle(" <<GetFillStyle() <<
");" <<std::endl;
1943 out <<
" " <<
"tmpStyle->SetMarkerColor(" <<GetMarkerColor() <<
");" <<std::endl;
1944 out <<
" " <<
"tmpStyle->SetMarkerSize(" <<GetMarkerSize() <<
");" <<std::endl;
1945 out <<
" " <<
"tmpStyle->SetMarkerStyle(" <<GetMarkerStyle() <<
");" <<std::endl;
1948 out <<
" " <<
"tmpStyle->SetTextAlign(" <<GetTextAlign() <<
");" <<std::endl;
1949 out <<
" " <<
"tmpStyle->SetTextAngle(" <<GetTextAngle() <<
");" <<std::endl;
1950 out <<
" " <<
"tmpStyle->SetTextColor(" <<GetTextColor() <<
");" <<std::endl;
1951 out <<
" " <<
"tmpStyle->SetTextFont(" <<GetTextFont() <<
");" <<std::endl;
1952 out <<
" " <<
"tmpStyle->SetTextSize(" <<GetTextSize() <<
");" <<std::endl;