[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49225] Parts of plot omitted from output when
From: |
Tasos Papastylianou |
Subject: |
[Octave-bug-tracker] [bug #49225] Parts of plot omitted from output when saved to file |
Date: |
Thu, 29 Sep 2016 19:33:11 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 |
URL:
<http://savannah.gnu.org/bugs/?49225>
Summary: Parts of plot omitted from output when saved to file
Project: GNU Octave
Submitted by: tpapastylianou
Submitted on: Thu 29 Sep 2016 07:33:09 PM GMT
Category: Plotting with OpenGL
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Tasos Papastylianou <poacheR>
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.0-rc2
Operating System: GNU/Linux
_______________________________________________________
Details:
Steps to reproduce:
%%%%% In file myboxplot.m
function myboxplot(LPercentile, Median, RPercentile, Height, LineWidth,
BoxHeight, MarkerColour, MarkerSize)
% A simple custom boxplot function
hold on
plot([LPercentile, RPercentile], [Height, Height], 'linewidth', LineWidth,
'color', 'k', 'linestyle', '-');
plot([LPercentile, LPercentile], [Height - BoxHeight/2, Height +
BoxHeight/2], 'linewidth', LineWidth, 'color', 'k', 'linestyle', '-');
plot([RPercentile, RPercentile], [Height - BoxHeight/2, Height +
BoxHeight/2], 'linewidth', LineWidth, 'color', 'k', 'linestyle', '-');
plot(Median, Height, 'marker', 'o', 'markersize', MarkerSize,
'markeredgecolor', 'k', 'markerfacecolor', MarkerColour);
hold off
end
In a terminal:
>> myboxplot(1,2,3,1,3,1,'g',20); hold on
>> myboxplot(2,3,5,3,3,1,'r',20); hold off
>> axis([0,6,0,4]);
>> saveas(gcf, 'out.pdf', 'pdf');
Bug: The plot within the octave session looks fine, but the file out.pdf is
missing the 'whiskers' and only shows the coloured markers.
Notes:
* Reported here
<http://stackoverflow.com/questions/39746234/octave-failing-to-include-parts-of-a-plot-when-saved-to-file>
first; Andy could not reproduce issue on his linux(?) installation.
* This happens regardless of output format chosen.
* Tested on linux mint 17.3 (based on ubuntu trusty) on a 64bit PC, and on
linux mint 18 (based on ubuntu xenial) on a 64bit laptop.
* Tested on both 4.0.3 stable, and 4.2.0-rc2 (both compiled using qt4 rather
than qt5).
* Saved pdf is as expected in matlab within the same linux environment on the
PC.
* Saved pdf is as expected in octave 4.0.2 on a windows environment on the
PC.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49225>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49225] Parts of plot omitted from output when saved to file,
Tasos Papastylianou <=