![Screenshot (19).png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/222025/Screenshot%20(19).png)
How can i change colour of a 3D plot?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have been trying to plot a 3D curve consisting of 4 variables :3 along the three axes and the fourth one as the parameter.As i change the value of the parameter the graph changes accordingly but since the new graph's color is similar to the old one it is difficult to distinguish them..the image has D2 as a parameter. Can i change the color of the graph according to the legend function? Thanks!
댓글 수: 0
답변 (1개)
Gaurav Srivastava
2019년 5월 30일
Carefully observe the table, and the syntax is
plot(x,y,'r+-') %r=Colour(here red) , +=Marker style(here plus) , -=Line style(here solid)
Check the table![Screenshot (19).png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/222025/Screenshot%20(19).png)
![Screenshot (19).png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/222025/Screenshot%20(19).png)
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!