matlab中arg inf sup f,在matlab中使用suptitle覆盖('visible','off')图形属性(Using suptitle overrides ('visible', ...

I am producing a large number of graphs in matlab R2011b. I would like to make use of the ('visible', 'off') figure property so that I don't need to display each plot on the screen---each plot contains a lot of data and several subplots so rendering them takes up time and unnecessary processing power (I save them directly to an image).

Each plot contains four subplots and I would like to add a super "title" to each figure. I have been using suptitle (part of the bioinfo toolbox) but it appears that using suptitle undoes the effect of ('visible, 'off') and the figure is displayed anyway.

xdata = -100:1:100;

ydata = -100:1:100;

zdata = rand(1,201)*-50;

fig1 = figure(1)

set(fig1, 'visible', 'off')

subplot(2,1,1)

scatter(xdata, ydata, 10, zdata)

title('Small title 1')

subplot(2,1,2)

scatter(xdata, ydata, 10, zdata)

title('small title 2')

suptitle('This is a big title')

Using this code, the graph is displayed. If the suptitle line is commented out then the figure is not displayed (which is what I want).

Does anyone know

Why this happens?

How I can fix it /work around it? Is there another way of adding a large title to a figure with subplots?

Thanks.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值