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/