Filled contour plots

Hi, I wanted to know if there was a way to create filled contour plots

Thanks
It can be finessed :-)

Add this line to your Procedure window (usually we put these at the top right after #pragma rtGlobals=1):

#include <AppendImageToContour>


Then create a contour plot (or bring the one you already have to the front), and click the Graph menu's new "Append Image or Fill Between Contours" item.

Leave the "Flat colors between contours?" setting to "Yes", and the default interpolation factor or default rows and columns (calculated to provide per-pixel fill) at the defaults, and click Continue.

Now you've got an image behind the contour with constant color between the contours.

If your contours are from XYZ data instead of matrix data, you may need to improve the contour line accuracy by increasing the interpolation factor in Modify Contour Appearance to get the lines and fills to align better.

Software Engineer, WaveMetrics, Inc.
FilledContour.png
Hi, that sounds great thanks. What line is it that I'm to '#include ...'
I fixed Jim's post so that the whole #include line is shown. Our forum software removes things in angle brackets (< >) that aren't valid HTML tags unless they are escaped to look like code, and that's what happened above.