"Yuri Geshelin" wrote in message <firstname.lastname@example.org>... > "Marco" <MATLABnewsgroup@mobildata.de> wrote in message <email@example.com>... > > "Yuri Geshelin" wrote in message <firstname.lastname@example.org>... > > > Confirmed: 'CreateFcn' doesn't work in MATLAB R2014b either. So unless Eric and Marco post the set of commands they used, I will assume that they are mistaken. > > > > I simply used the following code with in Win7Pro-64bit, R2014b with Image Processing Toolbox. All the best! Marco. > > > > h_MyFigure = figure; > > set(h_MyFigure,'Visible','off'); > > > > MY CODE HERE, i.e. SIMPLY: imshow(I); > > > > set(h_MyFigure,'CreateFcn','set(gcf,''Visible'',''on'')'); > > saveas(h_MyFigure,myfilename,'fig'); > > close(h_MyFigure); > > Thanks Marco. Still not sure why it doesn't work for me, but it's not important, because ResizeFCn works.
I tried the 'CreateFcn' approach and this worked for me, including the complicated subplots. I am using R2014b. Thanks everyone for your testing!