Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#if !defined(ROOT_Hoption_cxx) && !defined(G__DICTIONARY)
15#warning "This header is deprecated and will be removed in ROOT 6.44, use instead `THistPainter`, `TGraph2DPainter` public interfaces."
16#endif
17
18////////////////////////////////////////////////////////////////////////////////
19/*! \struct Hoption_t
20 \brief Histograms' drawing options structure.
21
22Used internally by THistPainter to manage histograms' drawing options.
23
24*/
25
26
27typedef struct Hoption_t {
28
29///@{
30/// @name Histogram's drawing options
31/// The drawing option may be the concatenation of some of the following options:
32
33 int Axis; ///< <b>"A"</b> Axis are not drawn around the graph.
34 int Bar; ///< <b>"B"</b>, <b>"BAR"</b> and <b>"HBAR"</b> A Bar chart is drawn at each point.
35 int Curve; ///< <b>"C"</b> A smooth Curve is drawn.
36 int Error; ///< <b>"En"</b> Draw Errors with current marker type and size (0 <= n <=6).
37 int Fill; ///< <b>"F"</b> A fill area is drawn ("CF" draw a smooth fill area).
38 int Off; ///< <b>"]["</b> The first and last vertical lines are not drawn.
39 int Line; ///< <b>"L"</b> A simple polyline through every point is drawn.
40 int Mark; ///< <b>"P"</b> The current Marker is drawn at each point.
41 int Same; ///< <b>"SAME"</b> Histogram is plotted in the current pad.
42 int Star; ///< <b>"*"</b> With option <b>"P"</b>, a * is plotted at each point.
43 int Arrow; ///< <b>"ARR"</b> Draw 2D plot with Arrows.
44 int Box; ///< <b>"BOX"</b> Draw 2D plot with proportional Boxes.
45 int Char; ///< <b>"CHAR"</b> Draw 2D plot with a character set.
46 int Color; ///< <b>"COL"</b> Draw 2D plot with Colored boxes.
47 int Polar; ///< <b>"POL"</b> Draw 2D plot with Polar coordinates.
48 int Contour; ///< <b>"CONTn"</b> Draw 2D plot as a Contour plot (0 <= n <= 5).
49 int Func; ///< <b>"FUNC"</b> Draw only the function (for example in case of fit).
50 int Hist; ///< <b>"HIST"</b> Draw only the histogram.
51 int Lego; ///< <b>"LEGO"</b> and <b>"LEGOn"</b> Draw as a Lego plot(1 <= n <= 4).
52 int Scat; ///< <b>"SCAT"</b> Draw 2D plot a Scatter plot.
53 int Surf; ///< <b>"SURF"</b> and <b>"SURFn"</b> Draw as a Surface ((1 <= n <= 4).
54 int Text; ///< <b>"TEXT"</b> Draw 2D plot with the content of each cell.
55 int Tri; ///< <b>"TRI"</b> Draw TGraph2D with Delaunay triangles.
56 int Pie; ///< <b>"PIE"</b> Draw 1D plot as a pie chart.
57 long Candle; ///< <b>"CANDLE"</b> and <b>"VIOLIN"</b> Draw a 2D histogram as candle/box plot or violin plot.
58 int System; ///< <b>"POL"</b>, <b>"CYL"</b>, <b>"SPH"</b> and <b>"PSR"</b> Type of coordinate system for 3D plots.
59 int Zscale; ///< <b>"Z"</b> Display the color palette.
60 int FrontBox; ///< <b>"FB"</b> Suppress the front box for the 3D plots.
61 int BackBox; ///< <b>"BB"</b> Suppress the back box for the 3D plots.
62 int List; ///< <b>"LIST"</b> Generate the TObjArray "contours". To be used with option <b>"CONT"</b>
63 int Proj; ///< <b>"AITOFF"</b>, <b>"MERCATOR"</b>, <b>"SINUSOIDAL"</b> and <b>"PARABOLIC"</b> projections for 2d plots.
64 int AxisPos; ///< <b>"X+"</b> and <b>"Y+"</b> Axis position
65 int Spec; ///< <b>"SPEC"</b> TSpectrum graphics
66 int Zero; ///< <b>"0"</b> if selected with any LEGO option the empty bins are not drawn.
67 int MinimumZero; ///< <b>"MIN0"</b> or gStyle->GetHistMinimumZero()
68///@}
69
70///@{
71/// @name Other options
72/// The following structure members are set to 1 if the corresponding setting is selected.
73
74 int Logx; ///< log scale in X. Also set by histogram option
75 int Logy; ///< log scale in Y. Also set by histogram option
76 int Logz; ///< log scale in Z. Also set by histogram option
77
78///@}
79
81
82#endif
struct Hoption_t Hoption_t
Histograms' drawing options structure.
Definition Hoption.h:27
int Curve
"C" A smooth Curve is drawn.
Definition Hoption.h:35
int Proj
"AITOFF", "MERCATOR", "SINUSOIDAL" and "PARABOLIC" projections for 2d plots.
Definition Hoption.h:63
int Axis
"A" Axis are not drawn around the graph.
Definition Hoption.h:33
int Box
"BOX" Draw 2D plot with proportional Boxes.
Definition Hoption.h:44
int Scat
"SCAT" Draw 2D plot a Scatter plot.
Definition Hoption.h:52
int Text
"TEXT" Draw 2D plot with the content of each cell.
Definition Hoption.h:54
int Color
"COL" Draw 2D plot with Colored boxes.
Definition Hoption.h:46
int AxisPos
"X+" and "Y+" Axis position
Definition Hoption.h:64
int List
"LIST" Generate the TObjArray "contours". To be used with option "CONT"
Definition Hoption.h:62
int Logx
log scale in X. Also set by histogram option
Definition Hoption.h:74
int Zscale
"Z" Display the color palette.
Definition Hoption.h:59
int MinimumZero
"MIN0" or gStyle->GetHistMinimumZero()
Definition Hoption.h:67
int Contour
"CONTn" Draw 2D plot as a Contour plot (0 <= n <= 5).
Definition Hoption.h:48
int Off
"][" The first and last vertical lines are not drawn.
Definition Hoption.h:38
int Func
"FUNC" Draw only the function (for example in case of fit).
Definition Hoption.h:49
long Candle
"CANDLE" and "VIOLIN" Draw a 2D histogram as candle/box plot or violin plot.
Definition Hoption.h:57
int Spec
"SPEC" TSpectrum graphics
Definition Hoption.h:65
int FrontBox
"FB" Suppress the front box for the 3D plots.
Definition Hoption.h:60
int Pie
"PIE" Draw 1D plot as a pie chart.
Definition Hoption.h:56
int Char
"CHAR" Draw 2D plot with a character set.
Definition Hoption.h:45
int Star
"*" With option "P", a * is plotted at each point.
Definition Hoption.h:42
int Zero
"0" if selected with any LEGO option the empty bins are not drawn.
Definition Hoption.h:66
int Logz
log scale in Z. Also set by histogram option
Definition Hoption.h:76
int Tri
"TRI" Draw TGraph2D with Delaunay triangles.
Definition Hoption.h:55
int BackBox
"BB" Suppress the back box for the 3D plots.
Definition Hoption.h:61
int Mark
"P" The current Marker is drawn at each point.
Definition Hoption.h:40
int Arrow
"ARR" Draw 2D plot with Arrows.
Definition Hoption.h:43
int Line
"L" A simple polyline through every point is drawn.
Definition Hoption.h:39
int Same
"SAME" Histogram is plotted in the current pad.
Definition Hoption.h:41
int Lego
"LEGO" and "LEGOn" Draw as a Lego plot(1 <= n <= 4).
Definition Hoption.h:51
int Bar
"B", "BAR" and "HBAR" A Bar chart is drawn at each point.
Definition Hoption.h:34
int Polar
"POL" Draw 2D plot with Polar coordinates.
Definition Hoption.h:47
int Fill
"F" A fill area is drawn ("CF" draw a smooth fill area).
Definition Hoption.h:37
int Hist
"HIST" Draw only the histogram.
Definition Hoption.h:50
int Surf
"SURF" and "SURFn" Draw as a Surface ((1 <= n <= 4).
Definition Hoption.h:53
int Logy
log scale in Y. Also set by histogram option
Definition Hoption.h:75
int System
"POL", "CYL", "SPH" and "PSR" Type of coordinate system for 3D plots.
Definition Hoption.h:58
int Error
"En" Draw Errors with current marker type and size (0 <= n <=6).
Definition Hoption.h:36