MATLAB Answers

Set a new colormap

11 views (last 30 days)
Vicky
Vicky on 11 Feb 2020
Commented: Vicky on 11 Feb 2020
Hi, I would like to set a new colormap for my trisurf from the cmocean collection. Does anyone know how to set one of them? Thank you.

Accepted Answer

jessupj
jessupj on 11 Feb 2020
Edited: jessupj on 11 Feb 2020
It should be as easy as calling something like
cmap = cmocean('thermal'); % or 'deep', or whichever colormap from the collection you want.
cmocean maps are great, but may not be appreciated by reviewers
  3 Comments
Vicky
Vicky on 11 Feb 2020
Thanks so much! It works now! :)

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!