Hello rooters,
I'm wondering is it possible in new versions of ROOT > 3.03 to draw
TCanvas without TApplication?
I have small program
#include <TCanvas.h>
#include <TH1.h>
#include <iostream.h>
int main()
{
TCanvas *cc = new TCanvas("cc","Canvas",600,600);
TH1F *hh = new TH1("hh","Histo",50,-2,2);
hh->FillRandom("gaus",30000);
hh->Draw();
cc->Update();
char tmp;
cin>>tmp; // wait for user response
return 0;
}
on new versions of ROOT (3.04, 3.05) this program draws nothing.
Please give me hint how to make this program work.
Best regards,
Stanislaw.
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET