How to change background color of a surf
42 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Carmine Buonagura
am 5 Okt. 2020
Kommentiert: Ameer Hamza
am 6 Okt. 2020
Hello everyone, I have a surface obtained with the surf command. I would like to extract an image from it. In particular I would like to set a colored background, without the axis visible.
The only thing I know to achieve this stuff is:
surf(x,y,z)
view(2)
ax = gca; set(ax,'Color','k');
The problem is that if I remove the axis with:
ax.Visible = 'off'
the background color disappear.
I woould like to obtain the same image, without the axes.
2 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 5 Okt. 2020
Just turn the visibility of both axis off
ax.XAxis.Visible = 'off';
ax.YAxis.Visible = 'off';
6 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots 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!