help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with print


From: Pantxo
Subject: Re: Problem with print
Date: Mon, 4 Dec 2017 11:49:33 -0700 (MST)

Clinton Winant-2 wrote
> ubuntu 16.04, octave 4.2.1
> This script produces a screen image with two circles side-by side:
> 
> clear;
> t=linspace(0,2*pi,181);x=cos(t);y=sin(t);
> axes("position",[0.01,0.015,0.48,0.97]);
> plot(x,y,'linewidth',2)
> axis off;box off;
> axes("position",[0.51,0.015,0.48,0.97]);
> plot(x,y,'linewidth',2)
> axis off;box off
> print  -dpdf TestPrint2.pdf
> 
> A screenshot is attached showing the image as expected.  The print command
> produces a pdf file (also attached) that only shows the left hand circle??
> 
> Thanks so much!
> 
> _______________________________________________
> Help-octave mailing list

> Help-octave@

> https://lists.gnu.org/mailman/listinfo/help-octave
> 
> 
> screen.png (36K)
> <http://octave.1599824.n4.nabble.com/attachment/4685788/0/screen.png>
> SIO2grids.pdf (6K)
> <http://octave.1599824.n4.nabble.com/attachment/4685788/1/SIO2grids.pdf>

I see the same behavior with gl2ps 1.3.8 (the default on my distro) but
switching to gl2ps 1.4.0 solves the issue for me:

## Download http://geuz.org/gl2ps/src/gl2ps-1.4.0.tgz and put it in
/some/place
tar -xvf gl2ps-1.4.0.tgz
cd gl2ps-1.4.0
cmake .
make
LD_PRELOAD=/some/place/gl2ps-1.4.0/libgl2ps.so octave

Hope this helps,

Pantxo



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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