contourc patch

John W. Eaton jwe at bevo.che.wisc.edu
Wed Dec 19 15:38:55 CST 2007


On 19-Dec-2007, Kai Habel wrote:

| Hello,
| 
| I propose to include the patch from Alexander and Peter [1]. I have
| modified the original patch slightly and did some editorial changes.
| 
| With this patch we can plot something like:
| 
| [th, r] = meshgrid (linspace (0, 2*pi, 64), 0:.05:0.9);
| [X, Y] = pol2cart (th, r);
| f = ((X + i*Y).^4 - 1).^(1/4);
| contour(X, Y, abs(f), 16)
| 
| I have tried this patch with a test script and have seen no regressions
| for the normal case.
| 
| Kai
| 
| ChangeLog:
| 
| 2007-12-19  Alexander Barth
|   * scripts/contourc.m: Allow usage of irregular x,y data

I applied this patch and checked it in.  I also added your example
above as a demo in both contour and contourf.

Thanks,

jwe


More information about the Octave-maintainers mailing list