[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43032] surfc does not make contours visible
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #43032] surfc does not make contours visible |
Date: |
Sun, 24 Aug 2014 18:07:05 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 |
Update of bug #43032 (project octave):
Item Group: Inaccurate Result => Matlab Compatibility
Status: Need Info => Confirmed
_______________________________________________________
Follow-up Comment #4:
Octave is still not 100% compatible with Matlab and it uses a different method
for setting the Z-level for contours in a surfc plot.
After the surfc call in your script, instead of using a for loop to change the
zdata, use
set (h(2), "zlevel", -8);
This works fine, but it requires running a development version of Octave
(4.1.X) availble only if you build from Mercurial sources. Alas, this fix is
not available in the current stable release (3.8.2).
I can achieve something like it by hacking your script after the surfc call.
hc = h(2);
set (hc, 'zlevel', -8);
set (hc, 'zdata', get (hc, 'zdata') - 10*eps);
This sets the zlevel property manually and then changes the zdata every so
slightly to force a refresh of the contours.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43032>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/