# SetBatch causes different graphics output for pngs

**URL:** <https://root-forum.cern.ch/t/setbatch-causes-different-graphics-output-for-pngs/19682>\
**Category:** ROOT\
**Created:** [August 12, 2015, 7:44pm UTC](https://root-forum.cern.ch/t/setbatch-causes-different-graphics-output-for-pngs/19682 "2015-08-12T19:44:25Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [September 14, 2017, 6:36am UTC](https://root-forum.cern.ch/t/setbatch-causes-different-graphics-output-for-pngs/19682/18 "2017-09-14T06:36:12Z")

</div>

This is Kubuntu 14.04.5 LTS / x86\_64 with gcc 4.8.4 (so, running KDE desktop, if that matters) here.  
I tried [the macro from my previous post here](https://root-forum.cern.ch/t/setbatch-causes-different-graphics-output-for-pngs/19682/8) and I still get the same problem with the newest “v5-34-00-patches” and “6.10.04” (see the second line of every output -\> it’s sometimes “800 600” and sometimes “798 573”):

```auto
[...] $ for i in {1..10}; do root -l -n -q TestSetWindowSize.cxx; done
root [0] 
Processing TestSetWindowSize.cxx...
798 573
800 600
798 573
800 600
796 572
796 572
796 572
800 600
root [0] 
Processing TestSetWindowSize.cxx...
798 573
800 600
798 573
800 600
796 572
796 572
796 572
800 600
root [0] 
Processing TestSetWindowSize.cxx...
798 573
800 600
798 573
800 600
796 572
796 572
796 572
800 600
root [0] 
Processing TestSetWindowSize.cxx...
798 573
798 573
798 573
800 600
796 572
796 572
796 572
800 600
root [0] 
Processing TestSetWindowSize.cxx...
798 573
800 600
798 573
800 600
796 572
796 572
796 572
800 600
root [0] 
Processing TestSetWindowSize.cxx...
798 573
800 600
798 573
800 600
796 572
796 572
796 572
800 600
root [0] 
Processing TestSetWindowSize.cxx...
798 573
798 573
798 573
800 600
796 572
796 572
796 572
800 600
root [0] 
Processing TestSetWindowSize.cxx...
798 573
798 573
798 573
800 600
796 572
796 572
796 572
800 600
root [0] 
Processing TestSetWindowSize.cxx...
798 573
800 600
798 573
800 600
796 572
796 572
796 572
800 600
root [0] 
Processing TestSetWindowSize.cxx...
798 573
800 600
798 573
800 600
796 572
796 572
796 572
800 600

```

BTW. Even the newest [TCanvas](https://root.cern.ch/doc/master/classTCanvas.html) class description does not clearly say what one should expect from the [TCanvas::SetWindowSize](https://root.cern.ch/doc/master/classTCanvas.html#a03de689513900a38d3c8e45c30194501) in batch mode. See the “last line - 2” of every output above -\> there’s always “796 572”, so it seems to be completely ignored. Is this a bug or a “feature”?

---

_[View the full topic](https://root-forum.cern.ch/t/setbatch-causes-different-graphics-output-for-pngs/19682)._
