From: Nick Sinclair on
If anyone is still having the specific EzyFit menu problem. Here's a distilled version of the code provided here which removes the efmenu menus and the references to it. Since the menu items all have Label fields of 'EzyFit', this just searches for these fields. My thanks to you guys for sorting this out. It was a constant nuisance to see those extra menu items.

Cheers.

%%%%%%%%%%%
fnam='FIGNAME.fig'; %<-- EDIT filename of figure
v=load(fnam,'-mat');
hgS_070000=v.hgS_070000;
c=hgS_070000.children;
clear ix; count = 0;
for i = 1:length(c),
if isfield(c(i).properties,'Label'),
if(strfind(c(i).properties.Label,'EzyFit'))
count = count+1;
ix(count) = i;
end
end
end
c(ix)=[];
hgS_070000.children=c;
hgS_070000.properties.CreateFcn = '';
fnameout = 'FIGNAMEFIXED.fig'; %<-- EDIT filename of figure
save(fnameout,'hgS_070000');
openfig(fnameout);
%%%%%%%%%%%%%%%

fburton(a)nyx.net (Francis Burton) wrote in message <1251282726.754049(a)irys.nyx.net>...
> In article <h71mlj$dcb$1(a)fred.mathworks.com>,
> Frederic Moisy <moisy.nospam(a)fast.u-psud.fr> wrote:
> >Dear Francis,
> >
> >As the author of the Ezyfit toolbox, I would like to answer to your message.
> >
> >I am very sorry of this inconvenience. I know this bug since a long time,
> >and I have no idea on how to solve it. The best would be to find a way to
> >save the figures without including the non-mathworks menus, but I don't know
> >if it is possible. Or, when creating the menu, to specify a property in
> >it so that
> >the menu is not saved in the figure or GUI. I would be happy to learn
> >about that.
> >
> >Best,
> >Fred.
>
> Dear Fred,
>
> Your concern about the problem and eagerness to solve it is much
> appreciated. I would like to add here my thanks for your efforts
> in developing what is an excellent and useful toolkit - a piece
> of software that has been of great help to me and colleagues.
>
> If the Object Browser offered the ability to delete selected
> objects, it would simple to fix this issue. However, I suspect
> the folks who designed it never expected such a situation to
> arise - or perhaps the consequences of inadvertently removing
> an object are so terrible (like Eustace plucking the shrimp
> from the anemone) that a deliberate decision was made not to
> allow this.
>
> Regards,
> Francis
From: Frederic Moisy on
Dear Nick

Thank you so much for your patch, which works fine.
I will include it soon to the next release of Ezyfit.

Sincerely,
Fred.


"Nick Sinclair" <nicholas.sinclair(a)gmail.com> wrote in message <i0rrmk$j8l$1(a)fred.mathworks.com>...
> If anyone is still having the specific EzyFit menu problem. Here's a distilled version of the code provided here which removes the efmenu menus and the references to it. Since the menu items all have Label fields of 'EzyFit', this just searches for these fields. My thanks to you guys for sorting this out. It was a constant nuisance to see those extra menu items.
>
> Cheers.
>
> %%%%%%%%%%%
> fnam='FIGNAME.fig'; %<-- EDIT filename of figure
> v=load(fnam,'-mat');
> hgS_070000=v.hgS_070000;
> c=hgS_070000.children;
> clear ix; count = 0;
> for i = 1:length(c),
> if isfield(c(i).properties,'Label'),
> if(strfind(c(i).properties.Label,'EzyFit'))
> count = count+1;
> ix(count) = i;
> end
> end
> end
> c(ix)=[];
> hgS_070000.children=c;
> hgS_070000.properties.CreateFcn = '';
> fnameout = 'FIGNAMEFIXED.fig'; %<-- EDIT filename of figure
> save(fnameout,'hgS_070000');
> openfig(fnameout);
> %%%%%%%%%%%%%%%
>
> fburton(a)nyx.net (Francis Burton) wrote in message <1251282726.754049(a)irys.nyx.net>...
> > In article <h71mlj$dcb$1(a)fred.mathworks.com>,
> > Frederic Moisy <moisy.nospam(a)fast.u-psud.fr> wrote:
> > >Dear Francis,
> > >
> > >As the author of the Ezyfit toolbox, I would like to answer to your message.
> > >
> > >I am very sorry of this inconvenience. I know this bug since a long time,
> > >and I have no idea on how to solve it. The best would be to find a way to
> > >save the figures without including the non-mathworks menus, but I don't know
> > >if it is possible. Or, when creating the menu, to specify a property in
> > >it so that
> > >the menu is not saved in the figure or GUI. I would be happy to learn
> > >about that.
> > >
> > >Best,
> > >Fred.
> >
> > Dear Fred,
> >
> > Your concern about the problem and eagerness to solve it is much
> > appreciated. I would like to add here my thanks for your efforts
> > in developing what is an excellent and useful toolkit - a piece
> > of software that has been of great help to me and colleagues.
> >
> > If the Object Browser offered the ability to delete selected
> > objects, it would simple to fix this issue. However, I suspect
> > the folks who designed it never expected such a situation to
> > arise - or perhaps the consequences of inadvertently removing
> > an object are so terrible (like Eustace plucking the shrimp
> > from the anemone) that a deliberate decision was made not to
> > allow this.
> >
> > Regards,
> > Francis
From: Frederic Moisy on
The new version of ezyfit (V 2.40), available at
http://www.mathworks.com/matlabcentral/fileexchange/10176-ezyfit-2-40
now includes the patch.
Use the new function 'remove_efmenu_fig' in order to
remove the ezyfit menu of a given file.
Frederic.


"Frederic Moisy" <moisy(a)fast.u-psud.fr> wrote in message <i0sc5g$10$1(a)fred.mathworks.com>...
> Dear Nick
>
> Thank you so much for your patch, which works fine.
> I will include it soon to the next release of Ezyfit.
>
> Sincerely,
> Fred.
>
>
> "Nick Sinclair" <nicholas.sinclair(a)gmail.com> wrote in message <i0rrmk$j8l$1(a)fred.mathworks.com>...
> > If anyone is still having the specific EzyFit menu problem. Here's a distilled version of the code provided here which removes the efmenu menus and the references to it. Since the menu items all have Label fields of 'EzyFit', this just searches for these fields. My thanks to you guys for sorting this out. It was a constant nuisance to see those extra menu items.
> >
> > Cheers.
> >
> > %%%%%%%%%%%
> > fnam='FIGNAME.fig'; %<-- EDIT filename of figure
> > v=load(fnam,'-mat');
> > hgS_070000=v.hgS_070000;
> > c=hgS_070000.children;
> > clear ix; count = 0;
> > for i = 1:length(c),
> > if isfield(c(i).properties,'Label'),
> > if(strfind(c(i).properties.Label,'EzyFit'))
> > count = count+1;
> > ix(count) = i;
> > end
> > end
> > end
> > c(ix)=[];
> > hgS_070000.children=c;
> > hgS_070000.properties.CreateFcn = '';
> > fnameout = 'FIGNAMEFIXED.fig'; %<-- EDIT filename of figure
> > save(fnameout,'hgS_070000');
> > openfig(fnameout);
> > %%%%%%%%%%%%%%%
> >
> > fburton(a)nyx.net (Francis Burton) wrote in message <1251282726.754049(a)irys.nyx.net>...
> > > In article <h71mlj$dcb$1(a)fred.mathworks.com>,
> > > Frederic Moisy <moisy.nospam(a)fast.u-psud.fr> wrote:
> > > >Dear Francis,
> > > >
> > > >As the author of the Ezyfit toolbox, I would like to answer to your message.
> > > >
> > > >I am very sorry of this inconvenience. I know this bug since a long time,
> > > >and I have no idea on how to solve it. The best would be to find a way to
> > > >save the figures without including the non-mathworks menus, but I don't know
> > > >if it is possible. Or, when creating the menu, to specify a property in
> > > >it so that
> > > >the menu is not saved in the figure or GUI. I would be happy to learn
> > > >about that.
> > > >
> > > >Best,
> > > >Fred.
> > >
> > > Dear Fred,
> > >
> > > Your concern about the problem and eagerness to solve it is much
> > > appreciated. I would like to add here my thanks for your efforts
> > > in developing what is an excellent and useful toolkit - a piece
> > > of software that has been of great help to me and colleagues.
> > >
> > > If the Object Browser offered the ability to delete selected
> > > objects, it would simple to fix this issue. However, I suspect
> > > the folks who designed it never expected such a situation to
> > > arise - or perhaps the consequences of inadvertently removing
> > > an object are so terrible (like Eustace plucking the shrimp
> > > from the anemone) that a deliberate decision was made not to
> > > allow this.
> > >
> > > Regards,
> > > Francis
From: Nick Sinclair on
Cool. Thanks, Frederic. I do like EzyFit, btw. I just had problems with it adding menus to all of my guide-created gui's. Keep up the good work.

-nick

"Frederic Moisy" <moisy(a)fast.u-psud.fr> wrote in message <i2s2qc$j28$1(a)fred.mathworks.com>...
> The new version of ezyfit (V 2.40), available at
> http://www.mathworks.com/matlabcentral/fileexchange/10176-ezyfit-2-40
> now includes the patch.
> Use the new function 'remove_efmenu_fig' in order to
> remove the ezyfit menu of a given file.
> Frederic.
>
>
> "Frederic Moisy" <moisy(a)fast.u-psud.fr> wrote in message <i0sc5g$10$1(a)fred.mathworks.com>...
> > Dear Nick
> >
> > Thank you so much for your patch, which works fine.
> > I will include it soon to the next release of Ezyfit.
> >
> > Sincerely,
> > Fred.
> >
> >
> > "Nick Sinclair" <nicholas.sinclair(a)gmail.com> wrote in message <i0rrmk$j8l$1(a)fred.mathworks.com>...
> > > If anyone is still having the specific EzyFit menu problem. Here's a distilled version of the code provided here which removes the efmenu menus and the references to it. Since the menu items all have Label fields of 'EzyFit', this just searches for these fields. My thanks to you guys for sorting this out. It was a constant nuisance to see those extra menu items.
> > >
> > > Cheers.
> > >
> > > %%%%%%%%%%%
> > > fnam='FIGNAME.fig'; %<-- EDIT filename of figure
> > > v=load(fnam,'-mat');
> > > hgS_070000=v.hgS_070000;
> > > c=hgS_070000.children;
> > > clear ix; count = 0;
> > > for i = 1:length(c),
> > > if isfield(c(i).properties,'Label'),
> > > if(strfind(c(i).properties.Label,'EzyFit'))
> > > count = count+1;
> > > ix(count) = i;
> > > end
> > > end
> > > end
> > > c(ix)=[];
> > > hgS_070000.children=c;
> > > hgS_070000.properties.CreateFcn = '';
> > > fnameout = 'FIGNAMEFIXED.fig'; %<-- EDIT filename of figure
> > > save(fnameout,'hgS_070000');
> > > openfig(fnameout);
> > > %%%%%%%%%%%%%%%
> > >
> > > fburton(a)nyx.net (Francis Burton) wrote in message <1251282726.754049(a)irys.nyx.net>...
> > > > In article <h71mlj$dcb$1(a)fred.mathworks.com>,
> > > > Frederic Moisy <moisy.nospam(a)fast.u-psud.fr> wrote:
> > > > >Dear Francis,
> > > > >
> > > > >As the author of the Ezyfit toolbox, I would like to answer to your message.
> > > > >
> > > > >I am very sorry of this inconvenience. I know this bug since a long time,
> > > > >and I have no idea on how to solve it. The best would be to find a way to
> > > > >save the figures without including the non-mathworks menus, but I don't know
> > > > >if it is possible. Or, when creating the menu, to specify a property in
> > > > >it so that
> > > > >the menu is not saved in the figure or GUI. I would be happy to learn
> > > > >about that.
> > > > >
> > > > >Best,
> > > > >Fred.
> > > >
> > > > Dear Fred,
> > > >
> > > > Your concern about the problem and eagerness to solve it is much
> > > > appreciated. I would like to add here my thanks for your efforts
> > > > in developing what is an excellent and useful toolkit - a piece
> > > > of software that has been of great help to me and colleagues.
> > > >
> > > > If the Object Browser offered the ability to delete selected
> > > > objects, it would simple to fix this issue. However, I suspect
> > > > the folks who designed it never expected such a situation to
> > > > arise - or perhaps the consequences of inadvertently removing
> > > > an object are so terrible (like Eustace plucking the shrimp
> > > > from the anemone) that a deliberate decision was made not to
> > > > allow this.
> > > >
> > > > Regards,
> > > > Francis