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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48718] plot command clobbers axis "position"


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #48718] plot command clobbers axis "position" property with "hold on"
Date: Wed, 17 Oct 2018 16:08:05 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0

Follow-up Comment #11, bug #48718 (project octave):

I attached an updated patch, the call to update_ticklength is now in
calc_tightbox which is non const and eventually called less often than
get_extent.

To give you an idea of the number of skipped reentrant calls to
update_axes_layout and also of the number of additional calls to
update_ticklength, I have put a few printf and ran code from comment #5:


octave:1> close all
octave:2> ylabel "y-axis";
update_axes_layout #1 OK
update_axes_layout #2 OK
** Additionnal call to update_ticklength **
update_axes_layout #3 OK
update_axes_layout #4 OK
update_axes_layout #5 OK
** Additionnal call to update_ticklength **
update_axes_layout #6 OK
update_axes_layout #7 OK
update_axes_layout #8 OK
** Additionnal call to update_ticklength **
update_axes_layout #9 OK
update_axes_layout #10 OK
octave:3> hold on
octave:4> pos1 = get (gca, "position")
pos1 =

   0.13000   0.11000   0.77500   0.81500

octave:5> plot((1:2), (1:2)*1e-4)
update_axes_layout #11 OK
update_axes_layout #12 OK
update_axes_layout #13 OK
update_axes_layout #14 OK
update_axes_layout #15 skipped
** Additionnal call to update_ticklength **
update_axes_layout #16 skipped
update_axes_layout #17 skipped
update_axes_layout #18 skipped
** Additionnal call to update_ticklength **
update_axes_layout #19 skipped
update_axes_layout #20 skipped
update_axes_layout #21 skipped
** Additionnal call to update_ticklength **
update_axes_layout #22 skipped
update_axes_layout #23 skipped
update_axes_layout #24 OK
update_axes_layout #25 skipped
** Additionnal call to update_ticklength **
update_axes_layout #26 skipped
update_axes_layout #27 skipped
update_axes_layout #28 skipped
** Additionnal call to update_ticklength **
update_axes_layout #29 skipped
update_axes_layout #30 skipped
update_axes_layout #31 skipped
** Additionnal call to update_ticklength **
update_axes_layout #32 skipped
update_axes_layout #33 skipped
update_axes_layout #34 OK




(file #45226)
    _______________________________________________________

Additional Item Attachment:

File name: update_labels_position.patch   Size:1 KB


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?48718>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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