Hi Alexander,
here is a macro:
{
TCanvas * c = new TCanvas("cc", "cc", 500,500);
c->Range(0,0, 100, 100);
Double_t x[4] = {20, 60, 50, 20};
Double_t y[4] = {10, 40, 40, 10};
TCutG * cut = new TCutG("cut", 4, x, y);
cut->Draw();
gStyle->SetMarkerStyle(kFullDotLarge);
cut->SetDrawOption("P");
c->Update();
}
Note: TCutG inherits from TGraph. so you can use
TGraphs (or its (grand) parents) methods
The options are described in:
TGraph::PaintGraph
Cheers
Otto
On Fri, 17 Jun 2005, Alexander Bürger wrote:
> Dear rooters,
>
> Which methods do I have to use to make a TCutG draw markers and lines?
>
> SetMarkerStyle(kFullDotLarge) does not have the desired effect on a
> newly created TCutG, and SetMarkerSize(5) does not improve it. The only
> way I found is via the dialog "show markers" (which, btw, hides the
> line), but this is very inconvenient for large numbers of cuts.
>
> ROOT version is 4.04.02
>
> Thanks for your help,
>
> Alexander
>
-- Dr. Otto Schaile Department f"ur Physik, LMU M"unchen Phone: +49 89 289 14070 Am Coulombwall 1, D-85748 Garching, Germany Mobil: +49 160 1553598 FAX: +49 89 289 14072 EMail: Otto.Schaile_at_Physik.Uni-Muenchen.DEReceived on Fri Jun 17 2005 - 11:16:40 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:09 MET