Comments on: Practical example: Algorithm development for making colormaps https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/?s_tid=feedtopost Jiro and Sean share favorite user-contributed submissions from the File Exchange. Wed, 18 May 2016 20:45:47 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: kw https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-13709 Mon, 19 Jul 2010 23:55:22 +0000 https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-13709 code is missing. broken url.

]]>
By: Anne-Lene https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-13487 Wed, 31 Mar 2010 11:58:40 +0000 https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-13487 Thank you for useful code!

]]>
By: Kika https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-13189 Fri, 26 Jun 2009 14:10:51 +0000 https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-13189 THANK YOU!!
I’ve been trying to change the colormap but I didn’t know what to do. It was driving me crazy!
Thank you very much for the help

Kika

]]>
By: Doug https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-8022 Wed, 02 Jan 2008 16:06:41 +0000 https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-8022 Andy,

What was the commands you were using? I just tried the example in CONTOURCMAP only I made a throw-away function JETT that just calls JET. This worked fine. Please send or post the code you used and we can figure this out.

I suspect that my colormap function expects different inputs than CONTOURCMAP gives so things are not working. You will probably want to make a wrapper around my function that takes just a single number input (like JET and other colormap functions do) so that when CONTOURCMAP calls it it will behave like the others.

Doug

]]>
By: Andy https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-7887 Mon, 31 Dec 2007 03:59:43 +0000 https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-7887 Hi Doug – Thank you for creating the very useful makeColorMap. My goal was to integrate this function into my plots that use contourcmap.m. However, I kept getting an error, ‘cmap string must contain a colormap function name’ since contourcmap only allows built in Matlab color maps. My way around this was to comment out lines 64-68 of contourcmap. Do you recommend this solution, and if not, what other methods could I try? Thanks!

]]>
By: Amir https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-6088 Tue, 20 Nov 2007 06:22:02 +0000 https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-6088 Dan,
Here is the solution –
https://www.mathworks.com/support/tech-notes/1200/1215.html
Amir

]]>
By: Doug https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-6003 Mon, 19 Nov 2007 15:13:36 +0000 https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-6003 Dan,

The colormap is a property of the Figure, so all axes in a figure share it.

Doug

]]>
By: Dan Pace https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-6000 Mon, 19 Nov 2007 14:24:08 +0000 https://blogs.mathworks.com/pick/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-6000 Hi Doug – thanks for the helpful video. I have a question. Is it possible to display two surface plots, with different colormaps, on the same axes? Thanks – Dan

]]>