I'm using surf to make 3d plots, but one of them comes out weird and I cannot understand why..thus is the figure that comes out:
even if the colormap on the right looks fine, the surface is completely black, even if I change 'FaceAlpha' and no matter how I rotate it...how can I fix this?

1 件のコメント

Stephen23
Stephen23 2018 年 9 月 17 日
"how can I fix this?"
Two options:
  1. Don't plot so many points.
  2. Turn off the edge color.

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

 採用された回答

jonas
jonas 2018 年 9 月 17 日
編集済み: jonas 2018 年 9 月 17 日

2 投票

Grid is too fine, set 'edgecolor' off.
surf(X,Y,Z,'edgecolor','none')

5 件のコメント

Stephan
Stephan 2018 年 9 月 17 日
Hi Jonas,
i think it is
EdgeColor
instead of
edgecolor
- isnt it?
Best regards
Stephan
jonas
jonas 2018 年 9 月 17 日
編集済み: jonas 2018 年 9 月 17 日
I think the set method (or name/value pair) is not case sensitive, as opposed to the dot method. For example
H.edgecolor
Does not work while
set(H, edgecolor,...)
works
Stephan
Stephan 2018 年 9 月 17 日
Again learned a lesson ;-)
Maria445
Maria445 2018 年 9 月 17 日
Thank you!
Steven Lord
Steven Lord 2018 年 9 月 17 日
The set function has been around for quite a while (I believe it was introduced as a part of the original Handle Graphics system, but that's before my time at MathWorks.) It was and is permissive with respect to the case of graphics object property names.
The [object].[property name] syntax for Handle Graphics objects was introduced in release R2014b. Object property name indexing in general is case sensitive, and property name indexing for Handle Graphics objects is no exception.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDiscrete Data Plots についてさらに検索

タグ

質問済み:

2018 年 9 月 17 日

コメント済み:

2018 年 9 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by