[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52289] subplot not behaving uniformly
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #52289] subplot not behaving uniformly |
Date: |
Thu, 26 Oct 2017 13:49:40 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0 |
Update of bug #52289 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #2:
Yes, this is a known issue with colorbar and legend: those functions change
the "activepositionproperty" of their corresponding axes, which makes subplot
size not be updated correctly. The workaround is to draw legends (or
colorbars) last:
graphics_toolkit qt
figure(1) ; clf ;
set(1, 'paperpositionmode', 'auto')
ax(1) = subplot(2,1,1) ;
plot(1:5)
xlabel XLABEL
title TITLE
ax(2) = subplot(2,1,2) ;
plot(1:5)
xlabel XLABEL
title TITLE
legend(ax(1),'LEG', 'location', 'northeastoutside')
legend(ax(2),'LEG', 'location', 'northeastoutside')
pos = get(ax, 'position') ;
disp([pos{1}(3:4) ; pos{2}(3:4)])
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52289>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/