Logo ROOT   6.08/07
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  int Candle; ///< "CANDLE" Draw a 2D histogram as candle/box plot.
53  int Violin; ///< "VIOLIN" Draw a 2D histogram as violin plot.
54  int System; ///< type of coordinate system(1=car,2=pol,3=cyl,4=sph,5=psr)
55  int Zscale; ///< "Z" to display the Z scale (color palette)
56  int FrontBox; ///< = 0 to suppress the front box
57  int BackBox; ///< = 0 to suppress the back box
58  int List; ///< = 1 to generate the TObjArray "contours"
59  int Proj; ///< 1: Aitoff, 2: Mercator, 3: Sinusoidal, 4: Parabolic
60  int AxisPos; ///< Axis position
61  int Spec; ///< TSpectrum graphics
62  int Zero; ///< if selected with any LEGO option the empty bins are not drawn.
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 
71 } Hoption_t;
72 
73 #endif
int Keep
"K" The status of the histogram is kept in memory
Definition: Hoption.h:33
int AxisPos
Axis position.
Definition: Hoption.h:60
int Char
"CHAR" Draw 2D plot with a character set.
Definition: Hoption.h:41
Histogram option structure.
Definition: Hoption.h:24
int BackBox
= 0 to suppress the back box
Definition: Hoption.h:57
int Scat
"SCAT" Draw 2D plot a Scatter plot.
Definition: Hoption.h:47
int Proj
1: Aitoff, 2: Mercator, 3: Sinusoidal, 4: Parabolic
Definition: Hoption.h:59
int Axis
"A" Axis are not drawn around the graph.
Definition: Hoption.h:27
int Logy
log scale in Y. Also set by histogram option
Definition: Hoption.h:68
int Pie
"PIE" Draw 1D plot as a pie chart.
Definition: Hoption.h:51
int Text
"TEXT" Draw 2D plot with the content of each cell.
Definition: Hoption.h:49
int Contour
"CONT" Draw 2D plot as a Contour plot.
Definition: Hoption.h:43
int Logx
log scale in X. Also set by histogram option
Definition: Hoption.h:67
int Surf
"SURF" Draw as a Surface (SURF,Surf=1, SURF1,Surf=11, SURF2,Surf=12)
Definition: Hoption.h:48
int Line
"L" A simple polyline beetwen every point is drawn.
Definition: Hoption.h:34
int Mark
"P" The current Marker is drawn at each point
Definition: Hoption.h:35
int FrontBox
= 0 to suppress the front box
Definition: Hoption.h:56
int Fill
"F" A fill area is drawn ("CF" draw a smooth fill area).
Definition: Hoption.h:31
int Bar
"B" A Bar chart is drawn at each point.
Definition: Hoption.h:28
struct Hoption_t Hoption_t
int Spec
TSpectrum graphics.
Definition: Hoption.h:61
int Arrow
"ARR" Draw 2D plot with Arrows.
Definition: Hoption.h:39
int Color
"COL" Draw 2D plot with Colored boxes.
Definition: Hoption.h:42
int Error
"E" Draw Errors with current marker type and size.
Definition: Hoption.h:30
int Curve
"C" A smooth Curve is drawn.
Definition: Hoption.h:29
int Hist
"HIST" Draw only the histogram.
Definition: Hoption.h:45
int Zero
if selected with any LEGO option the empty bins are not drawn.
Definition: Hoption.h:62
int Candle
"CANDLE" Draw a 2D histogram as candle/box plot.
Definition: Hoption.h:52
int Box
"BOX" Draw 2D plot with proportional Boxes.
Definition: Hoption.h:40
int Func
"FUNC" Draw only the function (for example in case of fit).
Definition: Hoption.h:44
int List
= 1 to generate the TObjArray "contours"
Definition: Hoption.h:58
int Violin
"VIOLIN" Draw a 2D histogram as violin plot.
Definition: Hoption.h:53
int Off
"][" With H option, the first and last vertical lines are not drawn.
Definition: Hoption.h:32
int Star
"*" A * is plotted at each point
Definition: Hoption.h:38
int System
type of coordinate system(1=car,2=pol,3=cyl,4=sph,5=psr)
Definition: Hoption.h:54
int Zscale
"Z" to display the Z scale (color palette)
Definition: Hoption.h:55
int Same
"S" Histogram is plotted in the current PAD.
Definition: Hoption.h:36
int Logz
log scale in Z. Also set by histogram option
Definition: Hoption.h:69
int Update
"U" Update histogram previously plotted with option K
Definition: Hoption.h:37
int Lego
"LEGO" Draw as a Lego plot(LEGO,Lego=1, LEGO1,Lego1=11, LEGO2,Lego=12).
Definition: Hoption.h:46
int Tri
"TRI" Draw 2D plot with Delaunay triangles.
Definition: Hoption.h:50