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
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
|
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
Thursday, 29 January 2015, 01:17 GMT
Reason for closing: Implemented
Additional comments about closing: 3.8.2-4
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
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 !