Logo ROOT  
Reference Guide
Hoption.h
Go to the documentation of this file.
1 /* @(#)root/histpainter:$Id$ */
2 
3 /*************************************************************************
4  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
6  * *
7  * For the licensing terms see $ROOTSYS/LICENSE. *
8  * For the list of contributors see $ROOTSYS/README/CREDITS. *
9  *************************************************************************/
10 
11 #ifndef ROOT_Hoption
12 #define ROOT_Hoption
13 
14 
15 ////////////////////////////////////////////////////////////////////////////////
16 /*! \struct Hoption_t
17 \brief Histogram option structure.
18 
19 Used internally by `THistpainter` to manage histogram drawing options.
20 
21 */
22 
23 
24 typedef struct Hoption_t {
25  // The histogram's drawing option may be the concatenation of the following options:
26 
27  int Axis; ///< "A" Axis are not drawn around the graph.
28  int Bar; ///< "B" A Bar chart is drawn at each point.
29  int Curve; ///< "C" A smooth Curve is drawn.
30  int Error; ///< "E" Draw Errors with current marker type and size.
31  int Fill; ///< "F" A fill area is drawn ("CF" draw a smooth fill area).
32  int Off; ///< "][" With H option, the first and last vertical lines are not drawn.
33  int Keep; ///< "K" The status of the histogram is kept in memory
34  int Line; ///< "L" A simple polyline beetwen every point is drawn.
35  int Mark; ///< "P" The current Marker is drawn at each point
36  int Same; ///< "S" Histogram is plotted in the current PAD.
37  int Update; ///< "U" Update histogram previously plotted with option K
38  int Star; ///< "*" A * is plotted at each point
39  int Arrow; ///< "ARR" Draw 2D plot with Arrows.
40  int Box; ///< "BOX" Draw 2D plot with proportional Boxes.
41  int Char; ///< "CHAR" Draw 2D plot with a character set.
42  int Color; ///< "COL" Draw 2D plot with Colored boxes.
43  int Contour; ///< "CONT" Draw 2D plot as a Contour plot.
44  int Func; ///< "FUNC" Draw only the function (for example in case of fit).
45  int Hist; ///< "HIST" Draw only the histogram.
46  int Lego; ///< "LEGO" Draw as a Lego plot(LEGO,Lego=1, LEGO1,Lego1=11, LEGO2,Lego=12).
47  int Scat; ///< "SCAT" Draw 2D plot a Scatter plot.
48  int Surf; ///< "SURF" Draw as a Surface (SURF,Surf=1, SURF1,Surf=11, SURF2,Surf=12)
49  int Text; ///< "TEXT" Draw 2D plot with the content of each cell.
50  int Tri; ///< "TRI" Draw 2D plot with Delaunay triangles.
51  int Pie; ///< "PIE" Draw 1D plot as a pie chart.
52  long Candle; ///< "CANDLE" Draw a 2D histogram as candle/box plot or violin plot (also with "VIOLIN").
53  int System; ///< type of coordinate system(1=car,2=pol,3=cyl,4=sph,5=psr)
54  int Zscale; ///< "Z" to display the Z scale (color palette)
55  int FrontBox; ///< = 0 to suppress the front box
56  int BackBox; ///< = 0 to suppress the back box
57  int List; ///< = 1 to generate the TObjArray "contours"
58  int Proj; ///< 1: Aitoff, 2: Mercator, 3: Sinusoidal, 4: Parabolic
59  int AxisPos; ///< Axis position
60  int Spec; ///< TSpectrum graphics
61  int Zero; ///< if selected with any LEGO option the empty bins are not drawn.
62  int MinimumZero; ///< "MIN0" or gStyle->GetHistMinimumZero()
63 
64  // The following structure members are set to 1 if the corresponding option
65  // in the current style is selected.
66 
67  int Logx; ///< log scale in X. Also set by histogram option
68  int Logy; ///< log scale in Y. Also set by histogram option
69  int Logz; ///< log scale in Z. Also set by histogram option
70 
72 
73 #endif
Hoption_t::Logz
int Logz
log scale in Z. Also set by histogram option
Definition: Hoption.h:69
Hoption_t::Char
int Char
"CHAR" Draw 2D plot with a character set.
Definition: Hoption.h:41
Hoption_t::Tri
int Tri
"TRI" Draw 2D plot with Delaunay triangles.
Definition: Hoption.h:50
Hoption_t
Histogram option structure.
Definition: Hoption.h:24
Hoption_t::Keep
int Keep
"K" The status of the histogram is kept in memory
Definition: Hoption.h:33
Hoption_t::Scat
int Scat
"SCAT" Draw 2D plot a Scatter plot.
Definition: Hoption.h:47
Hoption_t::Proj
int Proj
1: Aitoff, 2: Mercator, 3: Sinusoidal, 4: Parabolic
Definition: Hoption.h:58
Hoption_t::Pie
int Pie
"PIE" Draw 1D plot as a pie chart.
Definition: Hoption.h:51
Hoption_t::BackBox
int BackBox
= 0 to suppress the back box
Definition: Hoption.h:56
Hoption_t::Contour
int Contour
"CONT" Draw 2D plot as a Contour plot.
Definition: Hoption.h:43
Hoption_t::MinimumZero
int MinimumZero
"MIN0" or gStyle->GetHistMinimumZero()
Definition: Hoption.h:62
Hoption_t::Axis
int Axis
"A" Axis are not drawn around the graph.
Definition: Hoption.h:27
Hoption_t::Logy
int Logy
log scale in Y. Also set by histogram option
Definition: Hoption.h:68
Hoption_t::Text
int Text
"TEXT" Draw 2D plot with the content of each cell.
Definition: Hoption.h:49
Hoption_t::Line
int Line
"L" A simple polyline beetwen every point is drawn.
Definition: Hoption.h:34
Hoption_t::Logx
int Logx
log scale in X. Also set by histogram option
Definition: Hoption.h:67
Hoption_t::Surf
int Surf
"SURF" Draw as a Surface (SURF,Surf=1, SURF1,Surf=11, SURF2,Surf=12)
Definition: Hoption.h:48
Hoption_t::Bar
int Bar
"B" A Bar chart is drawn at each point.
Definition: Hoption.h:28
Hoption_t::FrontBox
int FrontBox
= 0 to suppress the front box
Definition: Hoption.h:55
Hoption_t::Mark
int Mark
"P" The current Marker is drawn at each point
Definition: Hoption.h:35
Hoption_t::Fill
int Fill
"F" A fill area is drawn ("CF" draw a smooth fill area).
Definition: Hoption.h:31
Hoption_t::Color
int Color
"COL" Draw 2D plot with Colored boxes.
Definition: Hoption.h:42
Hoption_t::Spec
int Spec
TSpectrum graphics.
Definition: Hoption.h:60
Hoption_t::Error
int Error
"E" Draw Errors with current marker type and size.
Definition: Hoption.h:30
Hoption_t::Hist
int Hist
"HIST" Draw only the histogram.
Definition: Hoption.h:45
Hoption_t::Candle
long Candle
"CANDLE" Draw a 2D histogram as candle/box plot or violin plot (also with "VIOLIN").
Definition: Hoption.h:52
Hoption_t::Arrow
int Arrow
"ARR" Draw 2D plot with Arrows.
Definition: Hoption.h:39
Hoption_t::Func
int Func
"FUNC" Draw only the function (for example in case of fit).
Definition: Hoption.h:44
Hoption_t::Curve
int Curve
"C" A smooth Curve is drawn.
Definition: Hoption.h:29
Hoption_t::Zero
int Zero
if selected with any LEGO option the empty bins are not drawn.
Definition: Hoption.h:61
Hoption_t::Box
int Box
"BOX" Draw 2D plot with proportional Boxes.
Definition: Hoption.h:40
Hoption_t
struct Hoption_t Hoption_t
Hoption_t::Star
int Star
"*" A * is plotted at each point
Definition: Hoption.h:38
Hoption_t::System
int System
type of coordinate system(1=car,2=pol,3=cyl,4=sph,5=psr)
Definition: Hoption.h:53
Hoption_t::List
int List
= 1 to generate the TObjArray "contours"
Definition: Hoption.h:57
Hoption_t::Off
int Off
"][" With H option, the first and last vertical lines are not drawn.
Definition: Hoption.h:32
Hoption_t::Zscale
int Zscale
"Z" to display the Z scale (color palette)
Definition: Hoption.h:54
Hoption_t::Same
int Same
"S" Histogram is plotted in the current PAD.
Definition: Hoption.h:36
Hoption_t::Lego
int Lego
"LEGO" Draw as a Lego plot(LEGO,Lego=1, LEGO1,Lego1=11, LEGO2,Lego=12).
Definition: Hoption.h:46
Hoption_t::Update
int Update
"U" Update histogram previously plotted with option K
Definition: Hoption.h:37
Hoption_t::AxisPos
int AxisPos
Axis position.
Definition: Hoption.h:59