Prev: making a linear filter mask and apply to an image
Next: Problem with engwindemo.c - "unresolved external symbol"
From: Luca Cerone on 22 Apr 2010 09:25 Hi everybody, I'm generating a bunch of figures from my simulations: I first tried the command: figure('Visible','off') plot(x,y) saveas(gca,'name.fig') everything worked fine, except that when I open the figure in Matlab with open('name.fig') it is opened in invisible mode. I'd like to avoid this because I want to share the files with people that are not really into Matlab, so that for them it would be scary to use the command set(gcf,'Visible','on') in order to show them. I've tried to leave the 'Visible' property to 'on', but it's very annoying working and displaying all the figures that sometime popup and interrupt your work. Is there any way so that I can save a figure such that is not displayed, but when it is when you open it with open function??? Thank you very much in advance for your advices, Cheers, -Luca
From: matt dash on 29 Apr 2010 12:38
"Luca Cerone" <luca_cerone#_remove_this#@yahoo.it> wrote in message <hqpio7$snt$1(a)fred.mathworks.com>... > Hi everybody, > I'm generating a bunch of figures from my simulations: > I first tried the command: > figure('Visible','off') > plot(x,y) > saveas(gca,'name.fig') > > everything worked fine, > except that when I open the figure in Matlab > with open('name.fig') > it is opened in invisible mode. > I'd like to avoid this because I want to share the files with people > that are not really into Matlab, so that for them it would be scary > to use the command set(gcf,'Visible','on') in order to show them. > > I've tried to leave the 'Visible' property to 'on', but it's very annoying working > and displaying all the figures that sometime popup and interrupt your work. > > Is there any way so that I can save a figure such that is not displayed, > but when it is when you open it with open function??? > Thank you very much in advance for your advices, > Cheers, -Luca You may have already figured this out, but you can open it with openfig and specify 'visible'. Of course, that might be just as bad as needing to use set.... and it might do some weird resizing if your figure is very large. |