[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49494] rescaling axes does not modify gca.yli
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #49494] rescaling axes does not modify gca.ylim |
Date: |
Tue, 7 Mar 2017 10:52:44 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Update of bug #49494 (project octave):
Release: 4.2.0 => 4.2.1
Operating System: GNU/Linux => Any
_______________________________________________________
Follow-up Comment #5:
I am not sure why inserting "drawnow" helped in that specific RC. It no longer
changes anything for me, too. Sorry that I gave wrong information. I was under
the impression that "drawnow" would trigger an update of all graphics
properties.
I also tried in Windows and got the same result as the OP.
The example in comment #0 works if either "ytick" or "ytickmode" is set
*before* the last call of "plot". So maybe both should update the axis limits
when changed. I can provide a changeset if this is the case.
Do we really want that the axes limits change in that case? Or is that the
bug?
I had to slightly modify your script so that it could run in Matlab:
>> figure;
plot([0 1],[-2.02 1.3311],'k','linewidth',2);
yl = get (gca, 'ylim')
set(gca,'ytickmode','manual')
yl = get (gca, 'ylim')
text(.1,.5,num2str(yl(1),'%3.1f'))
yl = get (gca, 'ylim')
yl =
-2.5000 1.5000
yl =
-2.5000 1.5000
yl =
-2.5000 1.5000
I get the same results when I execute the script line by line.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49494>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/