Error when saving figure with linux command line

10 views (last 30 days)
Spencer DeLange
Spencer DeLange on 26 Apr 2022
Edited: Jan on 26 Apr 2022
Receiving an error when I try and save a figure as a png. See traceback below. Calling matlab from a python script with -batch flag.
Error using validate (line 166)
Printing of uicontrols is not supported on this platform.
Error in print (line 67)
pj = validate( pj );
Error in saveas (line 181)
print( h, name, ['-d' dev{i}] )
Error in NavErrPlotsLN25X (line 238)
Error in NavErrPlotsProgramSwitch (line 42)
statusLog = NavErrPlotsLN25X(uutData,config,statusLog);
Error in FTPReviewWeb (line 51)
log = NavErrPlotsProgramSwitch(uutData,config,log);

Answers (1)

Jan on 26 Apr 2022
Edited: Jan on 26 Apr 2022
In batch mode, Matlab does not support interactive GUI elements.
print('-noui', ...)




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!