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

Cropping not working in 2D subplot figure #354

Closed jojojojojojo closed 2 years ago

jojojojojojo commented 2 years ago

Hello,

the cropping routine seems to give a pagesize handed to ghostcript with negative entries:

When using the command export_fig('TEST_2D.pdf','-pdf','-painters','-transparent','TEST_2D.fig')

I get in the Matlab prompt:

Error using eps2pdf (line 258) Error: /configurationerror in --setpagedevice-- Additional information: [/PageSize [603 -15]]

I am running v3.25

Maybe someone can help? Thanks for the great software! Best regards,

Johannes

Figure file attached, please remove the "wrong" pdf-extension TEST_2D.fig.pdf

altmany commented 2 years ago

Possibly a duplicate of issue #356 that was just fixed in the latest release - please retry and let me know.

jojojojojojo commented 2 years ago

Works great now, awesome! Thanks a lot!