Saving canvas gives cut image

Hi everyone.
I have problems saving canvas to image (png, jpg, gif), because the image results in the top left corner of the image only.
My computer is a macbook pro with Maveriks.

I attach a script and the resulting image.

Thanks

Luca



spectrum_noise_pads.C (2.4 KB)

I have the same issue. Interestingly, I do not see the problem if I save my plots as a .pdf.

As there is no answer and to keep a track of this problem, you should post a bug report on JIRA.

The last version of ROOT which save png file correctly on Mavericks is root_v5.34.18. All higher versions have this problem. I reported the similar problem in this forum: “Problem with png of divided canvas in 5-34/19 on Mac”.

Cheers,
Andriy

[quote=“zatserkl”]The last version of ROOT which save png file correctly on Mavericks is root_v5.34.18. All higher versions have this problem. I reported the similar problem in this forum: “Problem with png of divided canvas in 5-34/19 on Mac”.

Cheers,
Andriy[/quote]

Your problem is different. What OP has is a retina macbook and 1/4 of the real image (the real image has sizes w*scalingFactor X h *scalingFactor where scalingFactor is > 1 with retina display.

I also use a retina display. But why the version 5.34/18 works fine while 5.34/21 fails?
The same story with the saving of divided canvas. All versions above 5.34/18 have this problem.

Andriy

Sorry to have not replied to this earlier. I was on holidays.
Making a Jira report might be easier to follow.
Are you using too with X11 or ROOT with Cocoa ?

[quote=“zatserkl”]I also use a retina display. But why the version 5.34/18 works fine while 5.34/21 fails?
The same story with the saving of divided canvas. All versions above 5.34/18 have this problem.

Andriy[/quote]

The problem is fixed in 5.34 and 6.x master.