[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with print
From: |
Juan Pablo Carbajal |
Subject: |
Re: Problem with print |
Date: |
Tue, 5 Dec 2017 16:32:38 +0100 |
On Tue, Dec 5, 2017 at 12:13 PM, Alois Schloegl
<address@hidden> wrote:
>
>
> On 2017-12-04 18:25, Clinton Winant 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!
>>
>>
>
> When the default
> graphics_toolkit
>
> (in my case it's fltk) is set, I can reproduce the problem on Debian 9,
> compiled from source.
>
> When you change to gnuplot
>
> close all;
> graphics_toolkit gnuplot
>
> the above script will work.
>
>
> Best,
> Alois
>
>
For many people the printed output of gnuplot is not satisfactory,
lacking (among others) anti-aliasing and too think axes/grid lines.
Specially when compared with the on-screen output of the opengel
toolkits.
GL2PS, even the fixed 4.0 version still produces outputs that do not
look like the screen.
Many times, I just take screenshots of the plots (I use shutter) or
export an svg (really bad when surface, images, colorbars, contours
are exported) and then use inkscape to generate png o pdf.
It is highly undesired, because breaks automation (can do something
using command line inkscape), but I do this only in the last version
of the figure. Before that I just live with what we can get.
I know, I know... I will try to boost this development whenever possible.
Regards,