[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shading() behavior
From: |
Catalin Codreanu |
Subject: |
Re: shading() behavior |
Date: |
Thu, 25 Jul 2013 22:58:58 +0200 |
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.
>
> Cheers,
> Rik
>
Hello,
I ran the script and I compiled the image before and after the
"shading interp" line.
Here's the result. Hope it helps!
Cat
Shading.png
Description: PNG image