[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51829] Consecutive plots gradually drifts out
From: |
Tunc |
Subject: |
[Octave-bug-tracker] [bug #51829] Consecutive plots gradually drifts out of figure area |
Date: |
Wed, 23 Aug 2017 12:51:58 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
URL:
<http://savannah.gnu.org/bugs/?51829>
Summary: Consecutive plots gradually drifts out of figure
area
Project: GNU Octave
Submitted by: tunc
Submitted on: Wed 23 Aug 2017 04:51:57 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: GNU/Linux
_______________________________________________________
Details:
If multiple plots are made without explicitly closing the figure window, the
following plots tend to gradually drift downwards (towards -y axis). It is as
if the calculation of corner coordinates are done without using the updated
value of the font size variable.
Attached png files show what happens as the below loop iterates. Basically,
1) The plot moves downwards, truncating first the labels and then the plot
itself.
2) The legend also is improperly plotted after iteration 10. As a
3) If the system is not forced to pause between figures, some figures are
rendered before actually being plotted, resulting in white files.
set(0,'DefaultAxesFontSize', 20);
data = rand(50,50);
for i = 1:1:20
imagesc(data);
xlabel('x-label');
ylabel('y-label');
colorbar;
print(sprintf('%d.png',i));
pause(0.05);
end
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 23 Aug 2017 04:51:57 PM UTC Name: 1.png Size: 36KiB By: tunc
<http://savannah.gnu.org/bugs/download.php?file_id=41622>
-------------------------------------------------------
Date: Wed 23 Aug 2017 04:51:57 PM UTC Name: 5.png Size: 35KiB By: tunc
<http://savannah.gnu.org/bugs/download.php?file_id=41623>
-------------------------------------------------------
Date: Wed 23 Aug 2017 04:51:57 PM UTC Name: 10.png Size: 30KiB By: tunc
<http://savannah.gnu.org/bugs/download.php?file_id=41624>
-------------------------------------------------------
Date: Wed 23 Aug 2017 04:51:57 PM UTC Name: 20.png Size: 28KiB By: tunc
<http://savannah.gnu.org/bugs/download.php?file_id=41625>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51829>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51829] Consecutive plots gradually drifts out of figure area,
Tunc <=