[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38407] Problem writing FLTK figure to file us
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #38407] Problem writing FLTK figure to file using saveas |
Date: |
Mon, 25 Feb 2013 11:32:04 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130220 Firefox/17.0 |
URL:
<http://savannah.gnu.org/bugs/?38407>
Summary: Problem writing FLTK figure to file using saveas
Project: GNU Octave
Submitted by: None
Submitted on: Mon 25 Feb 2013 11:32:02 AM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Adam A
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.4
Operating System: GNU/Linux
_______________________________________________________
Details:
I've come across a problem when saving a figure to file using 'saveas'. In
certain situations, data plotted using 'scatter' is missing from the saved
file. This is on Octave 3.6.4, running on Scientific Linux 6.2.
As far as I can tell, the bug only seems to appear under a combination of
conditions (below). However, I haven't pinned down the precise combination
that causes the problem.
- Using FLTK
- Using subplots
- Using hold on/hold off
- Using scatter
A similar problem occurs if I try to save the figure to file using 'print'
instead of 'saveas'.
Code to reproduce the bug:
graphics_toolkit fltk
xco = 1:20;
yco = 1:20;
zdata = 1:20;
% Figure A: Works
figure
subplot(1,2,1)
scatter(xco,yco,[],zdata,'.')
subplot(1,2,2)
plot(xco,yco,'bd','MarkerFaceColor','b','MarkerSize',2)
saveas(gcf,'testA.png')
% Figure B: Does not work
figure
subplot(1,2,1)
hold on
scatter(xco,yco,[],zdata,'.')
hold off
subplot(1,2,2)
plot(xco,yco,'bd','MarkerFaceColor','b','MarkerSize',2)
saveas(gcf,'testB.png')
% Figure C: Works
figure
subplot(1,2,1)
hold on
scatter(xco,yco,[],zdata,'.')
hold off
subplot(1,2,2)
plot(xco,yco,'bd')
saveas(gcf,'testC.png')
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38407>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38407] Problem writing FLTK figure to file using saveas,
anonymous <=