[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57881] Resizing subplot results in disappeara
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #57881] Resizing subplot results in disappearance of one of the plots |
Date: |
Thu, 26 Mar 2020 03:44:14 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0 |
Update of bug #57881 (project octave):
Category: Plotting => Documentation
Release: dev => 6.0.90
_______________________________________________________
Follow-up Comment #5:
Looking at the input validation of "subplot", the "rows, cols, index" triplet
and the "position" property-value-pair seem to be mutually exclusive. (The
triplet takes precedence in this case.)
This also is what the Matlab documentation of that function suggests. [1]
With this modified code snippet, the layout looks like you probably expect for
me:
figure (1); clf (1)
m = 8;
pos = [ 0.07, 0, 0.92, 0.5/m];
for i = 1:m
pos(2) = 0.95 - i * 0.91/m;
h(i) = subplot ('position', pos);
endfor
title(h(1), 'My title')
Can you help improve the documentation of subplot to clarify this issue?
[1]: https://de.mathworks.com/help/matlab/ref/subplot.html
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57881>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/