![]() THistPainter offers many options to paint 1D, 2D and 3D histograms. For instance to draw a 2D histogram as a lego plot it is enough to do: h->Draw("lego") ![]() To choose how the histogram will be drawn, the Draw() method can be invoked with an option. ![]() To draw a histogram h it is enough to do: h->Draw() In case of histograms, TH1::Paint invokes directly THistPainter::Paint. When the canvas has to be redrawn, the Paint function of each objects in the pad is called. Each histogram has a pointer to its own painter (to be usable in a multithreaded program). Histograms are drawn via the THistPainter class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |