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

You cannot set the read-only property 'Position' of 'Tab' #333

Closed Dazedandconfused2 closed 3 years ago

Dazedandconfused2 commented 3 years ago

Yair

I'm using export_fig to print some .tifs in a GUI with a number of tabs. Each time I do this it spits out the following error message;

Warning: The following error was caught while executing 'onCleanup' class destructor:
Error using matlab.ui.container.Tab/set
You cannot set the read-only property 'Position' of 'Tab'.

Error in matlab.graphics.internal.mlprintjob
Error in matlab.graphics.internal.mlprintjob
Error in matlab.graphics.internal.mlprintjob.modifyUnitsForPrint
Error in modifyUnitsForPrint (line 7)
Error in alternatePrintPath
Error in alternatePrintPath
Error in alternatePrintPath
Error in onCleanup/delete (line 80)
Error in alternatePrintPath
Error in print (line 83)
Error in print2array>getPrintImage (line 310)
Error in print2array (line 167)
Error in export_fig>getFigImage (line 1736)
Error in export_fig (line 559)_

It does actually produce the figure but it takes a loooooong time to do it.

Thanks for all your work!

altmany commented 3 years ago

You are not using the latest (or even a recent) version of export_fig, so I cannot assist you and I'm closing the issue. If the problem still happens to you with the latest version, then feel free to reopen this issue.