#include "TStyle.h"
#include "TROOT.h"
Go to the source code of this file.
Functions | |
void | SetTDRStyle () |
Sets the semi-official CMS plotting global style. More... | |
void | ModTDRStyle (int width, int height, double t, double b, double l, double r) |
Sets an improved plotting style, using the CMS default as a base. More... | |
void | ModTDRStyle () |
Apply the modified plotting style using some sensible defaults for the canvas size and pad margins. More... | |
void | TdrGrid (bool grid_on) |
Modify the global style to enable/disable the drawing of axis gridlines. More... | |
void SetTDRStyle | ( | ) |
Sets the semi-official CMS plotting global style.
This is copied verbatim from the latest guidlines here. You should call this function at the start of your macro/program. But note, the function ModTDRStyle() might be more useful - this will call SetTDRStyle() first then adjust a few more settings to give a better plotting style.
Definition at line 42 of file Plotting_Style.h.
void ModTDRStyle | ( | int | width, |
int | height, | ||
double | t, | ||
double | b, | ||
double | l, | ||
double | r | ||
) |
Sets an improved plotting style, using the CMS default as a base.
Main changes are to be more consistent with margin sizes when stretching the TCanvas horizontally or vertically, and to fix some style options omitted from SetTDRStyle(). The canvas width and height, and the pad margins are passed as parameters.
Definition at line 182 of file Plotting_Style.h.
void ModTDRStyle | ( | ) |
Apply the modified plotting style using some sensible defaults for the canvas size and pad margins.
Definition at line 254 of file Plotting_Style.h.
void TdrGrid | ( | bool | grid_on | ) |
Modify the global style to enable/disable the drawing of axis gridlines.
Definition at line 256 of file Plotting_Style.h.