[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51938] Contour lines of meshc disappear when
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #51938] Contour lines of meshc disappear when calling axis |
Date: |
Wed, 6 Sep 2017 03:23:54 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0 |
Follow-up Comment #7, bug #51938 (project octave):
I've attached a simple patch that adds a listener to the axes that passes the
contour handle into the function so it may be used to adjust the zlim.
The following works about right:
graphics_toolkit qt
figure
[X,Y] = meshgrid(-3:.125:3);
Z = peaks(X,Y);
meshc(X,Y,Z)
axis('equal')
albeit a little clunky.
However, pressing "Autoscale" has a problem. Although the listener is called,
the placement of the contour seems to affect auto-zlim range. I've lessened
the effect by de-activating zlimmode adjustment temporarily, but once it gets
turned back on the range readjusts. In the patch I've printed out the actual
value of zlim minimum to illustrate. I suppose the autoscale is designed to
leave a bit of space beyond the data limit even if that data limit falls at a
nice whole number. (Without turning off auto-adjust, the code will get into a
short feedback loop where it keeps adjusting until finding a stopping point.)
If someone can think of a way around this auto-adjusted zlim caused by the
placement of the contour, let me know (e.g., is there a way to take the
particular contour object out of the list of data elements used to determine
auto-range?).
(file #41742)
_______________________________________________________
Additional Item Attachment:
File name: octave-contour_listener-djs2017aug05.patch Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51938>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51938] Contour lines of meshc disapear when calling axis, anonymous, 2017/09/04
- [Octave-bug-tracker] [bug #51938] Contour lines of meshc disapear when calling axis, Doug Stewart, 2017/09/04
- [Octave-bug-tracker] [bug #51938] Contour lines of meshc disapear when calling axis, Rik, 2017/09/04
- [Octave-bug-tracker] [bug #51938] Contour lines of meshc disapear when calling axis, Dan Sebald, 2017/09/05
- [Octave-bug-tracker] [bug #51938] Contour lines of meshc disapear when calling axis, Rik, 2017/09/05
- [Octave-bug-tracker] [bug #51938] Contour lines of meshc disappear when calling axis, Rik, 2017/09/05
- [Octave-bug-tracker] [bug #51938] Contour lines of meshc disappear when calling axis, Dan Sebald, 2017/09/05
- [Octave-bug-tracker] [bug #51938] Contour lines of meshc disappear when calling axis, Dan Sebald, 2017/09/05
- [Octave-bug-tracker] [bug #51938] Contour lines of meshc disappear when calling axis,
Dan Sebald <=
- [Octave-bug-tracker] [bug #51938] Contour lines of meshc disappear when calling axis, Dan Sebald, 2017/09/06