[Top][All Lists]

[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


                 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



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

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.


* Reported here
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
* Saved pdf is as expected in octave 4.0.2 on a windows environment on the


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]