altmany / export_fig

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

padding not working with 3.06 #307

Closed FFV47 closed 4 years ago

FFV47 commented 4 years ago

After updating the following line doesn't work anymore:

export_fig(sprintf('comp_Lcp%d', Lcp(a)), '-tif', '-r300', '-p0.02');

It returns this error msg:

Unable to perform assignment because the size of the left
side is 1898-by-3531-by-3 and the size of the right side
is 1898-by-3531.
Error in export_fig (line 651)
                    B(vB(1):vB(2), vB(3):vB(4), :) =
                    alpha(vA(1):vA(2), vA(3):vA(4), :); %
                    ADDED BY OH 

After removing '-p0.02' export_fig works again.

altmany commented 4 years ago

Fixed - thank you for reporting this bug