# 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:** 8

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 30, 2015, 9:02am UTC](https://root-forum.cern.ch/t/print-saveas-png-draws-axis-title-twice-with-offset/19142/8 "2015-07-30T09:02:50Z")

</div>

I can reproduce the effect on Mac with the X11 version using:

```auto
void png_double_x_axis_title(){

   gStyle->SetCanvasDefH(2000);
   gStyle->SetCanvasDefW(1000);

   TF1 *fa1 = new TF1("fa1","sin(x)/x",0,10);

   TCanvas *c1 = new TCanvas();

   fa1->Draw();
   fa1->GetXaxis()->SetTitle("X-axis");
   fa1->GetYaxis()->SetTitle("Y-axis");

   c1->Modified();
   c1->Update();

   c1->Print("test1.png");
}
```

It gives me the attached plot.

 ![](https://root-forum.cern.ch/uploads/default/original/2X/d/d8c641be67060abb3feb0b3c8bb58f6c86e5a2b7.png)

---

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