[manual] suggested addition to pcolor description
Kai Habel
kai.habel at gmx.de
Tue Jan 20 12:15:20 CST 2009
John W. Eaton schrieb:
> On 20-Jan-2009, Ben Abbott wrote:
>
> | On caveat is that gnuplot's method of interpolation is different
> | than that of Matlab's. As Francesco points out the commercial
> | variant splits rectangles into a pair of triangles and performs a
> | linear interpolation of the color across the triangle. Although I do
> | not know what algorithm is used, gnuplot does not work the same way.
>
> Is this something that Octave should do, rather than relying on
> gnuplot? If so, where does this code belong? Maybe we should provide
> a function (accessible from C++ and the scripting language?) that does
> the interpolation, so that all backends can do things consistently.
>
>
>
No,
I would leave this to the particular backend.
In 2007, I noticed that even matlab behaves differently depending on
platform (linux, windows) and renderer (OpenGL, ...) when plotting
polygons. But I have not verified if its still true. Also, OpenGL does
this interpolation with hardware acceleration, so we would waste a lot
of graphic performance in this case.
Kai
More information about the Bug-octave
mailing list