hi all
i’m using root version 5.27/06b and i’m using TArrow for the first time. when i draw it, though, the endpoint (the triangle) is not draw. i only seem to obtain a line.
here is a test program i use:
// BEGIN
#include "TH1D.h"
#include "TArrow.h"
#include "TCanvas.h"
int main () {
TH1D* h1 = new TH1D("test", "", 100, -5., 5. );
h1->FillRandom("gaus", 10000);
h1->SetFillStyle(3004);
h1->SetFillColor(39);
h1->SetLineColor(39);
h1->SetLineWidth(2.);
TArrow* arrow_obs = new TArrow( 3.5, 300., 3.5, 0., 0.1, ">" );
arrow_obs->SetLineColor(46);
arrow_obs->SetFillColor(46);
arrow_obs->SetLineWidth(2.);
TCanvas* c1 = new TCanvas("c1", "", 600, 600);
c1->cd();
h1->Draw();
arrow_obs->Draw("same");
c1->SaveAs("arrow.eps");
return 0;
}
// END
and here is the result i get: /afs/cern.ch/user/p/pandolf/public/arrow.eps
i must be doing something wrong. i tried also other options, such as “|->” and “<”, but nothing changed.
can someone help?
thanks
f