From: Duke Ng on
Hello,

I am using Matlab R2009b with Bioinformatics Toolbox, and I try to create a program that print out the clustergram to an image. Here is what I did:

c = clustergram(data);
fig = figure;
plot(c, fig);
print(fig,'-dpng',name);

The code runs just fine. Now I want the code to run *silently*, so I did

c = clustergram(data);
fig = figure;
set(fig,'visible','off');
plot(c, fig);
print(fig,'-dpng',name);
delete(c);
close(fig);

Everything looks good, except the clustergram. When I loop the code with different data sets, the clustergram keeps poping up annoyingly and harasses my other works on the screen.

Everyone knows how to set clustergram *invisible*, or any other idea of better printing clustergram to image without showing that clustergrams?

Thanks,

D.
From: Lucio Cetto on
Duke:
I am afraid this is not currently possible, as far as I know (I could be proven wrong), I will pass your request to the dev group.
Lucio

"Duke Ng" <duke.lists(a)gmx.com> wrote in message <hkffi4$np4$1(a)fred.mathworks.com>...
> Hello,
>
> I am using Matlab R2009b with Bioinformatics Toolbox, and I try to create a program that print out the clustergram to an image. Here is what I did:
>
> c = clustergram(data);
> fig = figure;
> plot(c, fig);
> print(fig,'-dpng',name);
>
> The code runs just fine. Now I want the code to run *silently*, so I did
>
> c = clustergram(data);
> fig = figure;
> set(fig,'visible','off');
> plot(c, fig);
> print(fig,'-dpng',name);
> delete(c);
> close(fig);
>
> Everything looks good, except the clustergram. When I loop the code with different data sets, the clustergram keeps poping up annoyingly and harasses my other works on the screen.
>
> Everyone knows how to set clustergram *invisible*, or any other idea of better printing clustergram to image without showing that clustergrams?
>
> Thanks,
>
> D.