RE : [ROOT] Empty postscript files

From: ANCIANT E. (eric.anciant@sodern.fr)
Date: Mon Mar 29 2004 - 13:52:33 MEST


Hello,

The macros do work for me (PS files are not empty) (also win2K, with :

  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   3.10/02  17 December 2003   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

Compiled for win32gdk.

CINT/ROOT C/C++ Interpreter version 5.15.115, Dec 9 2003

Eric



> -----Message d'origine-----
> De : owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]
> De la part de Marc de Kamps
> Envoyé : lundi 29 mars 2004 09:48
> À : roottalk@pcroot.cern.ch
> Objet : [ROOT] Empty postscript files
>
> Hi,
>
> Both macros below create empty ps files.
> This is 3.10/02 under win2000 (win32gdk version).
> What to do ?
>
> Thanks,
> 	Marc
>
>
>
> void Plot()
> {
> 	gROOT->Reset();
>
> 	TCanvas c1;
>
> 	TPostScript ps("Beautiful_histo.ps",111);
> 	TH1F h1("h1","wysiwyg",100,0,1);
> 	h1.Fill(0.5,1);
> 	h1.Draw();
>
> 	c1.Update();
>
> 	ps.Close();
> }
>
> void DumpCanvas()
> {
> 	gROOT->Reset();
>
> 	TCanvas c1;
>
> 	TH1F h1("h1","wysiwyg",100,0,1);
> 	h1.Fill(0.5,1);
> 	h1.Draw();
>
> 	c1.Update();
>
> 	c1.Print("Equally_beautiful_histo.ps");
> }


********
Ce message et eventuellement les pieces jointes sont exclusivement transmis a l'usage de leur destinataire. Leur contenu est strictement confidentiel. Si vous n etes pas le bon destinataire nous vous demandons de ne pas conserver, copier, utiliser ou divulguer cette communication. Merci de le detruire et de me notifier cette erreur.

INTERNET ne permettant pas d assurer l integrite de ce message, SODERN decline toute responsabilite au cas ou il aurait ete intercepte ou modifie.


This message and possibly attachments are transmit for the exclusive use of their address. Their content is strictly confidential. If you are not the intended recipient please do not keep, copy, use or disclose this communication to others. Also please delete it and notify the sender at once.

Because of the nature of INTERNET the sender is not in a position to ensure the integrity of this message, therefore SODERN disclaims any liability whatoever in the event of this message having been intercepted and/or altered.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET