Surf with wrong colors

7 Ansichten (letzte 30 Tage)
Maria445
Maria445 am 17 Sep. 2018
Kommentiert: Steven Lord am 17 Sep. 2018
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 Kommentar
Stephen23
Stephen23 am 17 Sep. 2018
"how can I fix this?"
Two options:
  1. Don't plot so many points.
  2. Turn off the edge color.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

jonas
jonas am 17 Sep. 2018
Bearbeitet: jonas am 17 Sep. 2018
Grid is too fine, set 'edgecolor' off.
surf(X,Y,Z,'edgecolor','none')
  5 Kommentare
Maria445
Maria445 am 17 Sep. 2018
Thank you!
Steven Lord
Steven Lord am 17 Sep. 2018
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by