从轴清除等值面(或其他图) [英] Clearing isosurface (or other plots) from an axes

查看:75
本文介绍了从轴清除等值面(或其他图)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下命令:

isosurface(data,color)

现在,如果我再次对同一数据使用相同的命令 ,则它会与前一个数据叠加.

Now if I use the same command with different data again, it gets superimposed on the previous one.

所以,我尝试做:

p = patch(isosurface(foo));
isonormals(foo,p)
delete(p);

删除上一个图,但是这样我不能使用colorbar.

to delete the previous plot, but this way i can't use the colorbar.

我该怎么办?

推荐答案

您尝试过吗?

cla(gca)

cla 清除轴,然后

cla clears an axes and gca is the handle to the current axes you're are plotting on.

这篇关于从轴清除等值面(或其他图)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆