Comments on: Practical example: Algorithm development for making colormaps https://blogs.mathworks.com/videos/2007/11/15/practical-example-algorithm-development-for-making-colormaps/?s_tid=feedtopost Stuart uses video to share his experiences solving problems with MATLAB day-to-day, interesting new features, plus tips and tricks he has picked up along the way. Mon, 04 Apr 2016 20:17:25 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Doug https://blogs.mathworks.com/videos/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-645 Wed, 02 Jan 2008 16:06:41 +0000 https://blogs.mathworks.com/videos/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-645 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/videos/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-644 Mon, 31 Dec 2007 03:59:43 +0000 https://blogs.mathworks.com/videos/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-644 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/videos/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-643 Tue, 20 Nov 2007 06:22:02 +0000 https://blogs.mathworks.com/videos/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-643 Dan,
Here is the solution –
https://www.mathworks.com/support/tech-notes/1200/1215.html
Amir

]]>
By: Doug https://blogs.mathworks.com/videos/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-641 Mon, 19 Nov 2007 15:13:36 +0000 https://blogs.mathworks.com/videos/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-641 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/videos/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-642 Mon, 19 Nov 2007 14:24:08 +0000 https://blogs.mathworks.com/videos/2007/11/15/practical-example-algorithm-development-for-making-colormaps/#comment-642 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

]]>