# Print / saveas png draws axis title twice with offset

**URL:** <https://root-forum.cern.ch/t/print-saveas-png-draws-axis-title-twice-with-offset/19142>\
**Category:** ROOT\
**Created:** [April 22, 2015, 8:29am UTC](https://root-forum.cern.ch/t/print-saveas-png-draws-axis-title-twice-with-offset/19142 "2015-04-22T08:29:58Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [April 23, 2015, 9:50am UTC](https://root-forum.cern.ch/t/print-saveas-png-draws-axis-title-twice-with-offset/19142/7 "2015-04-23T09:50:41Z")

</div>

I am able to reproduce this problem on my Ubuntu 14.04.  
It is related to two lines in the “rootlogon.C”:  
gStyle-\>SetCanvasDefH(RequestedH);  
gStyle-\>SetCanvasDefW(RequestedW);  
As soon as “RequestedH” and/or “RequestedW” exceed physical dimensions of my screen, I also get “spurious” contents in the “bottom” and/or “right” side in the “test1.png” file (but not in another saved pictures and not on the screen).  
I can clearly see that, when the “png\_double\_x\_axis\_title” macro starts, ROOT opens a canvas with “RequestedH” x “RequestedW” pixels and the “fa1” function is drawn (so that I do not see its “bottom” and/or “right” side on the screen) but then it is immediately “automatically resized” so that it fully fits my screen dimensions.  
Thus, for some reason, the “test1.png” file uses the original “RequestedH” x “RequestedW” pixels size, while the two remaining saved “.png” pictures use the actually available physical size of my screen (in pixels).

---

_[View the full topic](https://root-forum.cern.ch/t/print-saveas-png-draws-axis-title-twice-with-offset/19142)._
