Writing TCanvas to file BUT NOT TO SCREEN

Dear reader,

How could I write a TCanvas to a file without having it also put on screen? I would like to store histograms in nice canvases but since I am working via a (sometimes not too fast) ssh connection I rather avoid them being put out on my screen. I rather fetch them from file afterwards.


Ytsen de Boer.
rootsupport at yrdeboer point NetherLands

You can:

  1. start root with the option “-b” (for “batch”).
  2. execute a macro which creates a canvas. (no graphics window will appear).
  3. generate a PS file with: gPad->Print(“a.ps”);