octave-bug-tracker
[Top][All Lists]
Advanced

[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: Wed, 11 Sep 2013 23:10:07 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0

URL:
  <http://savannah.gnu.org/bugs/?40005>

                 Summary: set (ax, "ylim") incorrectly scales axis from deep
within listener hierarchy
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Wed 11 Sep 2013 04:10:07 PM PDT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

See the FIXME note in colorbar.m in subfunction update_colorbar_clim.


## 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.
##
## Debug Example:
## Uncomment the line below.
##   keyboard;
## Now run the the following code.
##   clf; colorbar (); contour (peaks ())
## Once the keyboard command has been hit in the debugger try
##   set (hiax, "ylim", [0 0.5]) 


The result is that the axis is scaled to half its original value.  Instead,
the axis should keep its size and the axis tick labels should change.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40005>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]