pcolor and "interp" [changeset-2]

Ben Abbott bpabbott at mac.com
Tue Sep 30 15:22:36 CDT 2008


On Tuesday, September 30, 2008, at 04:12PM, "John W. Eaton" <jwe at bevo.che.wisc.edu> wrote:
>On 30-Sep-2008, Ben Abbott wrote:
>
>|  On Tuesday, September 30, 2008, at 08:36AM, "Ben Abbott" <bpabbott at mac.com> wrote:
>| >On Monday, September 29, 2008, at 08:26PM, "John W. Eaton" <jwe at bevo.che.wisc.edu> wrote:
>| >>On 29-Sep-2008, Ben Abbott wrote:
>| >>
>| >>| 
>| >>| On Sep 29, 2008, at 6:48 PM, John W. Eaton wrote:
>| >>| 
>| >>| > On 29-Sep-2008, Ben Abbott wrote:
>| >>| >
>| >>| > | ok, then is there any objection to patching __gnuplot_version__ to
>| >>| > | include the patch level?
>| >>| >
>| >>| > OK, I checked in the following change.
>| >>| >
>| >>| > If we are going to make these changes, I'd prefer to at least have a
>| >>| > separate patch that removes the current have_newer_gnuplot variable.
>| >>| > I can easily make that change if you would like.
>| >>| >
>| >>| > jwe
>| >>| 
>| >>| ok, please do.
>| >>
>| >>I checked in the following change.
>| >>
>| >>jwe
>| >>
>| >
>| >Thanks. I've attached the changeset that enables interpolation of colors. As I'm presently working on a problem building current sources, I've not yet tried a "make check" with this change in place.
>| >
>| >Ben
>| >
>| 
>| ok, I ran "make check" with no problem. However, I did find a minor
>| type regarding the gnuplot version (my 4.2.3 is patched to properlay
>| interpolate colors). New changeset is attached.
>
>I applied the changeset.
>
>| The illusion used for gnuplot version < 4.2.4 when doing a pcolor is
>| questionable to me. However, I included it. Please comment. 
>
>What problems could this cause?  Is there some reason to not do it?
>
>Thanks,
>
>jwe

When rotating the gnuplot image via a mouse, Octave is not in control of the rendering, so the illusion may be revealed. Try ...

    pcolor (peaks ())
    shading interp

and then rotate the image to reveal the height of the "peaks". If the view is modified from the console, the interpolation is disabled, and a "flat" results.

Ben


More information about the Bug-octave mailing list