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

[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: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #49494] rescaling axes does not modify gca.ylim
Date: Sun, 5 Mar 2017 16:12:13 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0

Follow-up Comment #4, bug #49494 (project octave):

Drawnow has no effect for me and I am pretty sure that it should not be
necessary here, I don't know that an axes object has to be rendered (that is
what drawnow forces) for its properties to be right (for ui* objects it is
another matter).
Further more I see the reported behavior wether I run the code as a script or
paste it in the command window. In the latter situation Octave returns after
each command and it should be equivalent to calling drawnow.

What I see here is that changing the "ytickmode" property doesn't force limits
to be updated. Octave needs another object to be added (here the text object)
to have the axes limits recomputed.
What does Matlab do/return executing the script below?


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(sgca.ylim(1),"%3.1f"))
yl = get (gca, 'ylim')




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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