Rene Brun
On Mon, 5 Apr 1999, Stephen Adler wrote:
> As of 2.21-08 the following trivial script does not work....
> Am I doing something stupid? cheers. Steve.
>
> // Jitter plots
> #include <iostream.h>
>
> void jitter()
> {
>
> Float_t x[8] = {24.81,125.9,226.9,328.,429.1,1035.0,2046.,4067.};
> Float_t y[8] = {1.65, 37.96, 54.90, 69.21, 101.0, 164.80, 213.70,
> 350.60};
> // Comment out the above line and uncomment the line below
> // and it works fine!
> // Float_t y[8] = {1.65, 37.96, 54.90, 69.21, 101.0, 164.80, 213.70,350.60};
> Float_t ptp[8] = {12.0, 272.0, 349.0, 564.0, 700.0, 1084.0, 1592.0,2190.0};
>
> Int_t n = 8,i;
>
> for(i=0;i<n;i++) cout << i << " " << x[i] << " " << y[i] << endl;
> gr = new TGraph(n,x,y);
> gr->SetLineColor(2);
> gr->SetLineWidth(3);
> gr->SetMarkerColor(4);
> gr->SetMarkerStyle(21);
> gr->Draw("ALP");
>
> }
>