bugGNU Octave - Bugs: bug #49225, Parts of plot omitted from output...

 
 

bug #49225: Parts of plot omitted from output when saved to file

Submitter:  Tasos Papastylianou <tpapastylianou>
Submitted:  Thu 29 Sep 2016 07:33:09 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Tasos Papastylianou <poacheR> Open/Closed:  * Closed
Release:  * 4.2.0-rc2 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 29 Sep 2016 09:19:46 PM UTC, comment #3: 

Thanks.
Just confirming that installing libgl2ps1 (1.3.9-4) and recompiling octave worked.

Tasos Papastylianou <tpapastylianou>
Thu 29 Sep 2016 08:20:35 PM UTC, comment #2: 

Hi,

Thanks for you clear report. This bug has been fixed in the latest version of gl2ps (1.3.9), but linux mint 17.3 ships with gl2ps 1.3.8. On linux, the workaround is to compile your own version of gl2ps.
I'll close this report as fixed upstream.

Pantxo Diribarne <pantxo>
Group Member
Thu 29 Sep 2016 07:34:15 PM UTC, comment #1: 

"here" was meant to be a link, but it's not too obvious because of the colour scheme.

http://stackoverflow.com/questions/39746234/octave-failing-to-include-parts-of-a-plot-when-saved-to-file

Tasos Papastylianou <tpapastylianou>
Thu 29 Sep 2016 07:33:09 PM UTC, original submission:  

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 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.


Tasos Papastylianou <tpapastylianou>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by tpapastylianou (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-29 pantxo Open/ClosedOpen Closed
    2016-09-29 pantxo StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code