Put a limit value on contour and plot3
Show older comments
Hi,
The point of my question is how to put color limit on a specific value on a contour plot or plot3. In fact I would like to have :
- For my contour : if my lines have values from 0 to 10, for exemple I would like to have a specific color for the lines under 5 and a specific color for 5 to 10. Exactly I want to put red color on lines over a limit.
- For my plot3 : I have multiple points on 3D-space and for the z level, I would like to put a limit value and the points that are over this specific z-level takes the red color.
I don't know if I explained my request well but if somebody knows what I mean and have a function that could do that please tell me.
Baptiste
2 Comments
Jan
on 19 Nov 2018
Please explain, what "my lines have values from 0 tp 10" means exactly. Lines do not have values implicitly.
If you post the inputs and the code you have tried so far, suggesting a modification is much easier than with guessing your data and what you exactly want. Please edit the original question to add more details.
Baptiste Tarbouriech
on 19 Nov 2018
Answers (1)
Jan
on 19 Nov 2018
0 votes
For plot3 you can use the FEX submission https://www.mathworks.com/matlabcentral/fileexchange/5735-plot3c . For contour whould setting the Colormap of the axes work?
Categories
Find more on Contour Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!