[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Could not print figure with fltk
From: |
Pantxo |
Subject: |
Re: Could not print figure with fltk |
Date: |
Mon, 18 Sep 2017 09:21:44 -0700 (MST) |
hottea wrote
> Hi,
> Guys. It seems that I could not print figure using 'print' function with
> fltk.
> Here is my code:
>
> graphics_toolkit
> x = -pi:pi/100:pi;
> y = sin(x);
> f = figure('visible', 'off');
> plot(x, y)
> print(f, 'sin.png', '-dpng');
>
> Outputs:
>
> ans = fltk
> warning: print.m: epstool binary is not available.
> Some output formats are not available.
> warning: called from
> __print_parse_opts__ at line 385 column 9
> print at line 315 column 8
> warning: print.m: fig2dev binary is not available.
> Some output formats are not available.
> warning: called from
> __print_parse_opts__ at line 388 column 9
> print at line 315 column 8
> warning: print.m: pstoedit binary is not available.
> Some output formats are not available.
> warning: called from
> __print_parse_opts__ at line 391 column 9
> print at line 315 column 8
> error: __osmesa_print__: Depth and stencil doesn't match, are you sure you
> are using OSMesa >= 9.0?
> error: called from
> __opengl_print__ at line 172 column 7
> print at line 519 column 14
> ...
>
> _______________________________________________
> Help-octave mailing list
> Help-octave@
> https://lists.gnu.org/mailman/listinfo/help-octave
Hi,
The warnings you are seeing are not relevant for png format (install
transfig and they will disappear).
The error :
>>error: __osmesa_print__: Depth and stencil doesn't match, are you sure you
are using OSMesa >= 9.0?
is the same as I obtain on ubuntu 14.04 (more precisely mint 17.3) due to
this upstream bug:
https://bugs.launchpad.net/bugs/1424059
Maybe you are facing the same kind of miscompiled osmesa on arch.
Pantxo
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html