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