Skip to main content
23-Emerald V
January 13, 2013
Question

Using colormaps in matrix Pictures

  • January 13, 2013
  • 4 replies
  • 3937 views

There are many limitations in Mathcad's graphics capabilities (and a corresponding list of feature requests to improve them). Most of the time I just work around these limitations using standard techniques or just sigh and move on ("nothing to see,move along folks..."). However, every once in a while I get sufficiently irritated to do something about it.

In this case, I wanted to have color the mandelbrot set and didn't much like the display in 3D, so I wrote a function to use the 3D colormaps to colour a 2D image matrix for display in the Picture component. The worksheet also contains an animation.

However, I also have a memory like a something or other, I forget what. Checking after I'd written the attached worksheet, it turns out that this problem has arisen before and dpsycho posted an example that replicates the Rainbow map and I also found some other of my worksheets that created custom colormaps.

Stuart

collab+-+13+01+12+Picture+color+map+01.jpg

4 replies

1-Visitor
January 13, 2013

I like it.

25-Diamond I
January 13, 2013

Great sheet, as usual!

It looks to me as if your utilities section has grown again - very helpful and much appreciated.

Thanks!

Werner

24-Ruby III
January 19, 2013

Stuart,

Thanks!

23-Emerald V
January 20, 2013

Thank you all, but unfortunately there is an error in the interpolation method. I'll post a revised one later on.

Stuart

23-Emerald V
January 21, 2013
25-Diamond I
January 21, 2013

Thanks a lot!