altmany / export_fig

A MATLAB toolbox for exporting publication quality figures
BSD 3-Clause "New" or "Revised" License
1.27k stars 365 forks source link

when a handle of only one of axes is selected, the aspect ratio of the exported one seems not correct #359

Closed youngnhong66 closed 2 years ago

youngnhong66 commented 2 years ago

I tried to export not a whole figure but only one of axes. and found that the exported one has wrong aspect ratio.

The command I used is: export_fig(subplot(132), sprintf('test1), '-transparent', '-nocrop', '-png', '-m3')

altmany commented 2 years ago

I cannot reproduce - the exported axes seems to have the correct aspect ratio:

figure; export_fig(subplot(132), 'test.png', '-transparent', '-nocrop', '-m3'); winopen test.png

test

If you see something different then please post a comment here with a reproducible code snippet that shows the problem, as well as information about your run environment (latest export_fig version? which operating system? which Matlab release?).