00001 /* @(#)root/histpainter:$Id: Hoption.h 36077 2010-10-05 09:16:06Z brun $ */ 00002 00003 /************************************************************************* 00004 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00005 * All rights reserved. * 00006 * * 00007 * For the licensing terms see $ROOTSYS/LICENSE. * 00008 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00009 *************************************************************************/ 00010 00011 #ifndef ROOT_Hoption 00012 #define ROOT_Hoption 00013 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // THoption // 00018 // // 00019 // Histogram option structure. // 00020 // // 00021 ////////////////////////////////////////////////////////////////////////// 00022 00023 00024 typedef struct Hoption_t { 00025 // chopt may be the concatenation of the following options: 00026 00027 int Axis; // "A" Axis are not drawn around the graph. 00028 int Bar; // "B" A Bar chart is drawn at each point. 00029 int Curve; // "C" A smooth Curve is drawn. 00030 int Error; // "E" Draw Errors with current marker type and size. 00031 int Fill; // "F" A fill area is drawn ("CF" draw a smooth fill area). 00032 int Off; // "][" With H option, the first and last vertical lines are not drawn. 00033 int Keep; // "K" The status of the histogram is kept in memory 00034 int Line; // "L" A simple polyline beetwen every point is drawn. 00035 int Mark; // "P" The current Marker is drawn at each point 00036 int Same; // "S" Histogram is plotted in the current PAD. 00037 int Update; // "U" Update histogram previously plotted with option K 00038 int Star; // "*" A * is plotted at each point 00039 int Arrow; // "ARR" Draw 2D plot with Arrows. 00040 int Box; // "BOX" Draw 2D plot with proportional Boxes. 00041 int Char; // "CHAR" Draw 2D plot with a character set. 00042 int Color; // "COL" Draw 2D plot with Colored boxes. 00043 int Contour; // "CONT" Draw 2D plot as a Contour plot. 00044 int Func; // "FUNC" Draw only the function (for example in case of fit). 00045 int Hist; // "HIST" Draw only the histogram. 00046 int Lego; // "LEGO" Draw as a Lego plot(LEGO,Lego=1, LEGO1,Lego1=11, LEGO2,Lego=12). 00047 int Scat; // "SCAT" Draw 2D plot a Scatter plot. 00048 int Surf; // "SURF" Draw as a Surface (SURF,Surf=1, SURF1,Surf=11, SURF2,Surf=12) 00049 int Text; // "TEXT" Draw 2D plot with the content of each cell. 00050 int Tri; // "TRI" Draw 2D plot with Delaunay triangles. 00051 int Pie; // "PIE" Draw 1D plot as a pie chart. 00052 int System; // type of coordinate system(1=car,2=pol,3=cyl,4=sph,5=psr) 00053 int Zscale; // "Z" to display the Z scale (color palette) 00054 int FrontBox; // = 0 to suppress the front box 00055 int BackBox; // = 0 to suppress the back box 00056 int List; // = 1 to generate the TObjArray "contours" 00057 int HighRes; // = 1 to select high resolution 00058 int Proj; // = 1 to get an Aitoff projection, usefull for skymaps or exposure maps.. 00059 // = 2 to get a Mercator ptojection 00060 // = 3 to get a Sinusoidal ptojection 00061 // = 4 to get a Parabolic ptojection 00062 int AxisPos; // Axis position 00063 int Spec; // TSpectrum graphics 00064 00065 int Zero; // if selected with any LEGO option the empty are not drawn. 00066 00067 // the following structure members are set to 1 if the corresponding option 00068 // in the current style is selected. 00069 00070 int Logx; // log scale in X. Also set by histogram option 00071 int Logy; // log scale in Y. Also set by histogram option 00072 int Logz; // log scale in Z. Also set by histogram option 00073 00074 } Hoption_t; 00075 00076 #endif