octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shading() behavior


From: Benjamin Abbott
Subject: Re: shading() behavior
Date: Fri, 26 Jul 2013 11:07:18 +0200

On Jul 25, 2013, at 11:06 PM, Michael Goffioul <address@hidden> wrote:

On Thu, Jul 25, 2013 at 4:58 PM, Catalin Codreanu <address@hidden> wrote:
2013/7/25 Rik <address@hidden>:
> 7/25/13
>
> Could someone run the following %!demo block code in Matlab?
>
> clf;
> colormap ('default');
> [~,~,Z] = peaks();
> [Fx, Fy] = gradient (Z);
> surfc (Z, Fx+Fy)
> shading interp
>
> What does this do to the contour lines underneath the surface object?
>
> In Octave it messes up the contour lines because the contours are patch
> objects bundled up into an hggroup.  I'm wondering if we shouldn't limit
> the shading command to apply to just the passed in object and one level of
> children.

Is there a reason to implement the contour lines with patch objects (compatibility maybe)? Maybe they should be implemented with regular lines?

Michael.

The contour levels can be filled ... I think the command is contourf().

Ben.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]