Details on surf plot
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I have a 3D plot that I generated with this code:
a= linspace(0.8,1.2,12);
surf(a,1:59,abs(Z_data),'FaceColor' , 'interp');
and I would like to display the black lines orthogonal to the X axis, but not for the ones orthogonal to the Y axis. I have seen that I can choose the line style for the whole surface, but can I choose a different line style for the different lines orthogonal to the X or Y axis? That is, I want to show each of the a values in the surface grid but not the 59 lines for the y values.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190833/image.png)
Further, could I label each of these lines orthogonal to the X axis (example like in the image) if I do this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190834/image.png)
Thanks in advance for your help!
0 commentaires
Réponse acceptée
jonas
le 25 Mai 2018
As an alternative to waterfall, I just learned that you can change the meshstyle of surfaces
h=surf(peaks)
h.MeshStyle='row';
6 commentaires
Plus de réponses (2)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!