[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40005] set (ax, "ylim") incorrectly scales ax
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #40005] set (ax, "ylim") incorrectly scales axis from deep within listener hierarchy |
Date: |
Thu, 01 May 2014 22:01:31 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 |
Follow-up Comment #2, bug #40005 (project octave):
The problem is still there. I've re-written the example so that the problem
is evident.
##########################################################################
## FIXME: Setting xlim or ylim from within a listener callback
## causes the axis to change size rather than change limits.
## Workaround it by jiggling the position property which forces
## a redraw of the axis object.
##
## To see the problem:
## Comment out the 5 lines below the comment box which jiggle position
##
## Now run the the following code:
## clear -f
## clf; contour (peaks ()); colorbar ();
## caxis ([0 5]);
## Up to this point everything is fine.
## caxis ("auto");
## Now colorbar will be badly sized.
##
## The problem line is
## set (hiax, "ylim", cext)
##
## The issue seems to be that the axes object is redrawn to the wrong size
## and then is marked as clean so that further internal calls which set the
## correct size do not cause the object to be refreshed.
##########################################################################
I added the instructions to colorbar.m
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40005>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40005] set (ax, "ylim") incorrectly scales axis from deep within listener hierarchy,
Rik <=