axis equal & off not work for trisurf function

7 ビュー (過去 30 日間)
Yu Li
Yu Li 2020 年 9 月 26 日
コメント済み: Yu Li 2020 年 9 月 26 日
Hi:
I want to plot figure by 'trisurf', if I use order below:
f=figure;
axis equal
axis off
trisurf(xxxx)
the figure is not 'axis equal' and 'axis off', so I have to use command ordered as:
f=figure;
trisurf(xxxx)
axis equal
axis off
however, just interested in why the 1st option does not work... is this an inherent feature inside Matlab?
Thanks!
Yu

採用された回答

Walter Roberson
Walter Roberson 2020 年 9 月 26 日
You have not set hold on so the axes NextPlot property is set to replace. When trisurf() is called, it checks the NextPlot property and if it is set to replace then it resets the axes. This is the exact same reason that if you call plot() twice without hold on being in effect, that the second plot will replace the first.
  1 件のコメント
Yu Li
Yu Li 2020 年 9 月 26 日
thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by