Hello! I want to have a TGraph which looks like a histogram but I do not get along with the necessary TGraph options. I have a Float_t array FD with my (equidistant values). If I create another array XD with the x-axis values (bin numbers) and do TGraph gr(nbins, XD, FD); gr.Draw("AL") I get a graph with straight lines joining the points (and the x range is somewhat extended). When I use gr.Draw("AB") I get boxes around every bin which is somewhat more but not entirely like a histogram. My question is how do I use the options of TGraph::PaintGraph and TGraph::PaintGrapHist? The documentation mentions the possibility to use min/max values for the axis, what data do I have to supply and how do I indicate this mode? If I call TGraph::PaintGrapHist it either segfaults or does nothing. What type of data do I have to supply and which options to choose? Why is there no "histogram" option to TGraph::Draw? Thanks Robert
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:22 MET