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.
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.
Add this line to your Procedure window (usually we put these at the top right after #pragma rtGlobals=1):
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.
January 11, 2010 at 08:54 am - Permalink
January 11, 2010 at 09:06 am - Permalink
January 11, 2010 at 09:10 am - Permalink