pcolor - colorbar question

8 views (last 30 days)
Robert
Robert on 17 Nov 2018
Commented: Robert on 18 Nov 2018
Hello,
I am creating maps using pcolor with a colorbar using colors from white to yellow to light red for small to medium to large values, respectively. I am using caxis to request the limits of the colorbar, however when I have outliers (extreme large numbers) in my data I see that my map now has dark red, black or gray colors where those extreme values are instead of the light red color I defined for large values. How could I force the extreme values of my data to have the light red color that I defined for my colorbar and skip those unwanted colors in my map?
Thanks!
  4 Comments
Robert
Robert on 18 Nov 2018
Thank you so much dpb. I found a solution to my problem by using contourf, which allow me to have extreme data values as part of the maps colors.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!