# TCanvas::Print PNG outputs fraction of figure when canvas size is declared

**URL:** <https://root-forum.cern.ch/t/tcanvas-print-png-outputs-fraction-of-figure-when-canvas-size-is-declared/26011>\
**Category:** ROOT\
**Tags:** graphics\
**Created:** [August 24, 2017, 8:13pm UTC](https://root-forum.cern.ch/t/tcanvas-print-png-outputs-fraction-of-figure-when-canvas-size-is-declared/26011 "2017-08-24T20:13:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ksmith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksmith/32/12567_2.png) [@ksmith](https://root-forum.cern.ch/u/ksmith)\
**Post date:** [August 24, 2017, 9:08pm UTC](https://root-forum.cern.ch/t/tcanvas-print-png-outputs-fraction-of-figure-when-canvas-size-is-declared/26011/4 "2017-08-24T21:08:04Z")

</div>

This is definitely the same issue as:

> [@Saved canvas is magnified in top left corner](https://root-forum.cern.ch/t/saved-canvas-is-magnified-in-top-left-corner/19444/3):
>
> Ok, thanks So, temporarily, what is working for me is to just execute my script with the “-b” flag as well ie root -l script.C -b so in the silent mode actually my canvases are save in the dimensions and are filled properly if I open them afterwards. Regards

Also, the output is the same dimension in all three cases roughly 800x600. It seems that the `c2` canvas is exploded.

---

_[View the full topic](https://root-forum.cern.ch/t/tcanvas-print-png-outputs-fraction-of-figure-when-canvas-size-is-declared/26011)._
