Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #440

Postscript fill pattern broken?

From Ingo Thies <ingo.thies@gmx.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Postscript fill pattern broken?
Date 2011-07-17 15:00 +0200
Message-ID <98g4n1F3o9U1@mid.individual.net> (permalink)

Show all headers | View raw


Hi,

I have noticed some strange behaviour with fill patterns in Postscript. 
I don't know since when it is present, but at least gnuplot 4.4 or later 
(CVS version from July) seems to be affected.

When I try to use pattern fill in Postscript the pattern for fillecurves 
appears to be extremely pixeled, rather than smooth as in the style test 
page.

I am wondering how the patterns on the test page (i.e. with the command 
"test") are actually created. But obviously not using the actual 
commands for pattern-filled rectangles.

Here is an example script (note that the current gnuplot syntax only 
works with data-based curves rather than functions for fill between two 
curves; for this reason 'set table' is used. If there is an easier way, 
please describe this in the manual, if not already done so):

reset
set term push
set term postscript eps size 15cm,10cm "Helvetica" 20
set output 'testfill.eps'
set samples 100
set xrange [-2.*pi:+2.*pi]
set yrange [-1.1:2.4]
set table 'tmp.asc'
plot sin(x)+0.5
unset table
set style fill pattern 4
plot 'tmp.asc' u 1:($2-0.5):($2+0.5) w filledcu
unset output
set term pop

I would have expected that "fill pattern" would draw lines, but actually 
a pixeled pattern is used (use the magnifying function in ghostview). 
But please note that the sample pattern in the key looks OK, only the 
plotted pattern looks chunky.

Is there a workaround, or is this an old and not yet resolved bug?

Best whishes,

Ingo

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

Postscript fill pattern broken? Ingo Thies <ingo.thies@gmx.de> - 2011-07-17 15:00 +0200
  Filledcurves with manual color also broken? Ingo Thies <ingo.thies@gmx.de> - 2011-07-17 18:00 +0200
    Re: Filledcurves with manual color also broken? sfeam <sfeam@users.sourceforge.net> - 2011-07-17 09:33 -0700
      Re: Filledcurves with manual color also broken? Ingo Thies <ingo.thies@gmx.de> - 2011-07-17 18:39 +0200
    Re: Filledcurves with manual color also broken? Ingo Thies <ingo.thies@gmx.de> - 2011-07-17 18:36 +0200
  Re: Postscript fill pattern broken? sfeam <sfeam@users.sourceforge.net> - 2011-07-17 09:32 -0700
    Re: Postscript fill pattern broken? Ingo Thies <ingo.thies@gmx.de> - 2011-07-17 18:59 +0200

csiph-web