[changeset-v2] clarification to pcolor doc-string

John W. Eaton jwe at bevo.che.wisc.edu
Tue Sep 23 10:33:33 CDT 2008


On 23-Sep-2008, Ben Abbott wrote:

| On Tuesday, September 23, 2008, at 10:06AM, "Francesco Potorti`" <Potorti at isti.cnr.it> wrote:
| >>>>+## @code{shading} modifies an attribute determining the manner by which the
| >>>>+## face color of each cell is interpolated from the values of @var{c},
| >>>>+## and the visibility of the cells' edges. By default the attribute is
| >>>>+## "flat", which renders a single color for each cell's face with the edge
| >>>>+## visible.
| >>>
| >>>The text is correct, apart from the fact that this is not the "flat"
| >>>attribute, but "interp" or "faceted" (I can not tell which).
| >>
| >>The code for pcolor.m appears to be setting each patch to "flat"
| >>     set (tmp, "facecolor", "flat");
| >>Why is it you think that is not the case?
| >
| >This is what I observe with Octave 3.0.1 and gnuplot 4.2.3 on Debian:
| >
| >## produce a plot with 16 (4x4) squares
| >octave> pcolor(magic(5))	# edges are visible (black lines)
| >octave> shading("flat")		# edges become invisible
| >octave> shading('interp')	# no change
| >octave> shading('faceted')	# edges become visible again
| >
| >So apparently the default is "faceted".  I cannot find this as a
| >property of the plot though, so I can only deduce that by looking at the
| >plot.
| 
| Ok, I made the change.

I applied this changeset.

Thanks,

jwe


More information about the Bug-octave mailing list