FS#38993 - [octave] gl2ps is needed to save figures

Attached to Project: Arch Linux
Opened by Stefano Avallone (stavallo) - Saturday, 22 February 2014, 14:25 GMT
Last edited by Felix Yan (felixonmars) - Thursday, 29 January 2015, 01:17 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 9
Private No

Details

Description:

As far as I know, gl2ps is needed at build time to be able to print or save figures with OpenGL graphics. gl2ps is no longer distributed with Octave [1]. To allow the aforementioned feature, a gl2ps package should be added to the official repos (one exists in AUR) and added as makedepend and optdepend to octave.

I built gl2ps from AUR and rebuilt octave and I am now able to save my plots as pdf.


Thanks.

[1] http://octave.1599824.n4.nabble.com/gl2ps-is-no-longer-distributed-with-Octave-td4658640.html
This task depends upon

Closed by  Felix Yan (felixonmars)
Thursday, 29 January 2015, 01:17 GMT
Reason for closing:  Implemented
Additional comments about closing:  3.8.2-4
Comment by Martin Roth (Captain_Rage) - Thursday, 27 February 2014, 15:39 GMT
Same issue here. However, even after installing gl2ps from AUR it still doesn't allow me to save figures as .eps.
Comment by Stefano Avallone (stavallo) - Thursday, 27 February 2014, 16:57 GMT
You have to rebuild octave after installing gl2ps
Comment by Martin Roth (Captain_Rage) - Thursday, 27 February 2014, 22:44 GMT
Oh, I missed that. Thank you for the clarification. However, I'd rather not build anything myself, atleast not a package that's in an official repository, since I'm not sure how to do it properly. Hopefully a fix should come eventuelly, that only requires the octave package to be upgraded. Correct me if I'm wrong.
Comment by Danny Schneider (schnedan) - Wednesday, 13 August 2014, 18:11 GMT
Same here: don't want to self compile -> octave from repositories should be complete
Reproduce:
octave:3> x = -pi():0.1:3.*pi();
octave:4> y = sin(x);
octave:5> plot(x,y);
octave:6> grid on
octave:7> title("Sinus")
octave:8> print -dpng "test.png"
warning: print.m: epstool binary is not available.
Some output formats are not available.
error: fltk: printing not available without gl2ps library
error: octave_base_value::matrix_value(): wrong type argument '<unknown type>'
error: drawnow: A(I,J): row index out of bounds; value 1 out of bound 0
error: called from:
error: /usr/share/octave/3.8.1/m/plot/util/private/__fltk_print__.m at line 166, column 5
error: /usr/share/octave/3.8.1/m/plot/util/print.m at line 422, column 14
Comment by Christophe Viallon (Christophe) - Friday, 21 November 2014, 21:56 GMT
Problem still not fixed :(
Why the official octave package is not upgraded ?
I mean Octave is set to have fltk as default backend but gl2ps is not supported out-of-the-box and needs a full re-compilation of the official package. This seems completly awful to me. I'm not planing to compile octave by myself for the same reasons than others comments.
I have switched back to gnuplot as graphic default backend. This is to bad !
Comment by Felix Yan (felixonmars) - Tuesday, 27 January 2015, 15:38 GMT
Implemented in octave 3.8.2-4, please let me know if it works for you.
Comment by Danny Schneider (schnedan) - Wednesday, 28 January 2015, 19:57 GMT
Hello, just tested. Works perfectly

Loading...