Re: TPad based legend shown on screen and eps, not png/gif.

From: Rene Brun <>
Date: Thu, 19 May 2005 21:51:35 +0200 (MEST)


Which version are you using?
All the symptoms that you describe have been fixed by valery.

Rene Brun

On Thu, 19
May 2005, Brett Viren wrote:

> Hi Valeriy,
> Valeriy Onuchin <> writes:
>> Hi Brett,
>> strange ... no idea yet why it's happend. Be fixed asap.
>> However the following solution can help:
>> TImageDump *di = new TImageDump("test.png");
>> c1->Paint();
>> di->Close();
>> You can do it even in batch mode.
> I do indeed need this in batch mode! But, there are a coupld of new
> problems when using TImageDump:
> Some of the lines don't show up in the TImageDump's output. Eg, the
> test_legend.C output lacks the top and right borders. In my full plot
> the grid fails to show up at all as do one of the TGraphs I'm drawing
> with the "B" option. In both cases the EPS is correct.
> The TImageDump takes a long time (on order a minute on Opteron 2.2
> GHz) to dump the plot. It's true my plot does have many elements (one
> TGraph bar and marker for each NuMI spill to date) but EPS generation
> is just a couple seconds and the initial TCanvas rendering is even
> faster. I connected GDB to the process and it was spinning in
> TASImage::FillRectangleInternal, which makes sense given the many bars
> in the TGraph.
> Running in batch or graphical mode doesn't changes either of these
> issues.
> Thanks,
> -Brett.
Received on Thu May 19 2005 - 21:51:44 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:08 MET