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

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

[Octave-bug-tracker] [bug #52732] plot shrinks horizontally on replottin


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #52732] plot shrinks horizontally on replotting
Date: Sat, 23 Dec 2017 23:10:59 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #2, bug #52732 (project octave):

Note that all of the following 'off', 'hide', 'delete' appear to work
correctly.  (Although, I am wondering what th difference is between 'off' and
'hide'... I would think that maybe 'off' should disable the colorbar such that
the main plot goes back to the larger size while 'hide' doesn't show the
colorbox but still occupies space so that the main plot remains smaller.)


close all;
graphics_toolkit('qt');
image;
myhcb = colorbar()
colorbar('off');
colorbar('hide');
colorbar('delete');


The issue arises when doing another plot.  Try the following:


close all;
graphics_toolkit('qt');
image;
myhcb = colorbar()
image;
get(myhcb)


The follow-up image command removes the colorbar so that it is no longer
valid.  That might be OK, if only the position were restored first just like
what happens with colorbar('delete').  Maybe it is as simple as somehow
issuing the delete to the color bar.

I'm curious what happens on 4.2.1.  With the second "image;" command is the
colorbar visible?  Or does it disappear with a new plot?  My guess would be
the colorbar goes away; that seems to be the model, i.e., create the plot
first and then decorate it--not the other way around.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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