[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48718] plot command clobbers axis "position"
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #48718] plot command clobbers axis "position" property with "hold on" |
Date: |
Sun, 19 Mar 2017 19:01:35 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Update of bug #48718 (project octave):
Status: None => Confirmed
Summary: Wrong plot under some conditions => plot command
clobbers axis "position" property with "hold on"
_______________________________________________________
Follow-up Comment #5:
This is really odd, and ugly. Something is clobbering the "position" property
of the axes.
Try this test code:
close all
ylabel "y-axis";
hold on
pos1 = get (gca, "position")
plot((1:2), (1:2)*1e-4)
pos2 = get (gca, "position")
set (gca, "position", pos1);
When I run it I get the following.
pos1 =
0.13000 0.11000 0.77500 0.81500
pos2 =
1.3000e-01 3.5531e+12 7.7500e-01 -7.1061e+12
Not only is the y-position of the axes a huge 3.5e12, but the height is a
negative number. That is just impossible.
The plot looks normal to me after I restore the previously saved position
property with the final set command.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48718>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #48718] plot command clobbers axis "position" property with "hold on",
Rik <=