fimplicit3: colormapping (3DContourPlot)
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Niklas Kurz
am 30 Jan. 2021
Beantwortet: Scott Ronquist
am 30 Jan. 2021
This is totally optional and off pure interest:
If I plot a manifold with this powerful function:
f = @(x,y,z) x.^2 + y.^2 - z.^2;
fimplicit3(f)
The shape is exactly as I want. Just if: how do I change colorgradient?
I'm not well versed with terms like Edgecolor etc.
0 Kommentare
Akzeptierte Antwort
Scott Ronquist
am 30 Jan. 2021
Hi Niklas,
The color gradient in this figure can be changed by using the colormap function. Predefined colormaps are listed here, but any custom color map can be used by inputting a m x 3 numeric matrix into colormap. See example below:
>> f = @(x,y,z) x.^2 + y.^2 - z.^2;
>> fimplicit3(f)
>> colormap("cool")
Hope this helps!
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Colormaps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!