Add a New Comment (Rich Markup)
This issue is (slightly changed) still present in Octave 4.2.0. When I run the code from comment #0, then afterwards axis() gives me
ans = 0.00000 6.00000 0.13387 4.86613
So the calculation of the x-limits has improved, but the y-limits are still off. Accordingly, the top (and bottom) line of this square are still not displayed in the figure.
The problem seems to be that the C++ xlim and ylim updaters are called when the following code is executed in patch.m
## FIXME: This is a hack to get 'layer' command to work for 2D patches ## Alternative is much more complicated surgery in graphics.cc. ## of get_children_limits() for 'z' axis and 'patch' object type. if (! ishold ()) if (isempty (get (htmp, "zdata"))) set (hax, "zlim", [-1 1]); endif endif
Since cset 75f8926deef1 the following code only shows the axes because axis limits are calculated wrong.
scatter ([3 5 6], [4 2 1]) axis equal rectangle ('Position', [0, 0, 5, 5]);
axis () returns
ans = 1.7500 4.2500 1.5000 3.5000
so no scatter point or rectangle is visible. Octave 3.8.2 and default cset 10082673a8f0 (parent of 75f8926deef1) returns for axis:
ans = -0.12500 6.12500 0.00000 5.00000
which is okay. Btw, the "error: set: "zlim" is read-only" for rectangle, introduced from cset 75f8926deef1, was fixed with cset 87c3848cf3c0.
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only project members can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 2 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.11