[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58662] shading doesn't have any effect on wat
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #58662] shading doesn't have any effect on waterfall graphs in new versions of Octave |
Date: |
Mon, 29 Jun 2020 07:39:06 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 Edg/83.0.478.56 |
Update of bug #58662 (project octave):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
Octave's behavior probably changed when bug #48392 was fixed.
The difference might be more subtle in newer versions of Octave. But "shading"
*does* have an effect on waterfall graphs:
>> [X,Y] = meshgrid (-3:.125:3);
>> Z = peaks (X,Y);
>> waterfall (X,Y,Z)
>> [X,Y] = meshgrid (-3:.125:3);
>> Z = peaks (X,Y);
>> hp = waterfall(X,Y,Z);
>> get (hp, "edgecolor")
ans = flat
>> shading interp
>> get (hp, "edgecolor")
ans = interp
This is also what Matlab does in this case.
If you want to change the facecolor and edgecolor, you can set those
properties directly - like suggested in the stackoverflow thread (copying a
slightly modified version here for future reference):
[X,Y] = meshgrid (-3:.125:3);
Z = peaks (X,Y);
H = waterfall (X,Y,Z);
set (H, "facecolor", "flat");
set (H, "edgecolor", "k");
Closing as invalid.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58662>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/