Re: How can I save a function/histogram as an image without drawing it?

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 05 Jul 2007 12:59:14 +0200


Run your application in batch mode, eg

   root -b
root > .x macro.C

and inside the macro.C, print your canvas with, eg

   canvas->Print("canvas.gif"); //or jpg, etc

You must use ROOT version 5.14 or 5.16. gif files in batch mode were not possible with older versions.

Rene Brun

John Zoidberg wrote:
> How can I save a function/histogram as an image without drawing it?
> I want to avoid the use of the X server.
>
Received on Thu Jul 05 2007 - 12:59:21 CEST

This archive was generated by hypermail 2.2.0 : Thu Jul 05 2007 - 17:50:02 CEST