altmany / export_fig

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

Can not works on Matlab Online #370

Closed ymingsu closed 1 year ago

ymingsu commented 1 year ago

I upload this repo to Matlab Drive and called in Matlab Online

what the errors shown are: For professional Matlab assistance, please contact https://undocumentedmatlab.com/consulting 警告: Some uifigure controls cannot be exported by export_fig and will not appear in the generated output.

位置:[export_fig](matlab:matlab.internal.language.introspective.errorDocCallback('export_fig', '/MATLAB Drive/Published/myworks/submodules/export_fig-3.33/export_fig.m', 455)) ([第 455 行](matlab: opentoline('/MATLAB Drive/Published/myworks/submodules/export_fig-3.33/export_fig.m',455,0))) 位置: [export_fig](matlab:matlab.internal.language.introspective.errorDocCallback('export_fig', '/MATLAB Drive/Published/myworks/submodules/export_fig-3.33/export_fig.m', 473)) ([第 473 行](matlab: opentoline('/MATLAB Drive/Published/myworks/submodules/export_fig-3.33/export_fig.m',473,0)))

The first error is shown once, and the second is shown more than 10 times.

ymingsu commented 1 year ago

I use this code to upload

url = 'https://github.com/altmany/export_fig/archive/refs/tags/v3.33.zip';
unzip(url, 'submodules');
altmany commented 1 year ago

As the message clearly states, export_fig does not work well (or fully) with uifigures (web-based/online figures), only with legacy figures on your local computer. This is not an error - it is a known limitation and it is not expected to be resolved in the near future.