Hi, > The TPaveText "title" is redrawn each time the pad is redrawn using > the histogram title. To change this title, do > hist->SetTitle("new title") > or (same thing) using the "SetTitle" item in the histogram context menu. Thanks, but this is not what I really need. My canvas contains a couple of pads. In each pad some pad-specific graphs are drawn, but all pads share the same axises. I do it creating a separate multigraph which is a "sum" of all graphs from all pads (this way I automatically get proper x/y-axis-min/max). Then I draw this multigraph in all pads using just the "A" option. Later I draw individual graphs in appropriate pads. Thus what I need is to be able to change the "title" of the pad, not the multigraph. I think I have finally found a reasonable sequence of calls : TPaveText *p = (TPaveText *)0; (...) pad1->cd(); multigraph->Draw("A"); // draw axises padspecificgraph1->Draw("L") // draw pad-specific graph(s) pad1->Update(); if ((p = ((TPaveText *)(gPad->FindObject("title")))) != 0) { p->Clear(); p->InsertLine(); p->InsertText("New pad-specific title"); } pad1->Modified(); There is one problem that makes me ... If I interactively zoom one of pads (x- or y-axis), all the others are also affected. Any hint how to make their axises "independent" ? Thanks in advance, Jacek.
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET