RE:bug report

Masaharu Goto (MXJ02154@nifty.ne.jp)
Tue, 06 Apr 1999 20:14:02 +0900


Stephan,

I'm happy to answer your question.

Your script looks good and it runs without problem in both 'Float_t y[8]'
declaration on my machine. In such case, it is likely that there is a hidden
strange character in the line

Float_t y[8] = {1.65, 37.96, 54.90, 69.21, 101.0, 164.80, 213.70,
350.60};

I guess you have cleared the hidden character sometime and the problem
disappeared.

Thank you
Masaharu Goto

====================================================================
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");

}