#883 vector terminals overshoot rapidly changing lines

closed-works-for-me
nobody
2D plot (258)
5
2010-08-26
2010-04-08
Anonymous
No

Many thanks for pngcairo!
Unfortunately it suffers from the problem observed
for eps files too: The rapidly changing lines overshoot
the region they should fill much over their line-width.
See the attached illustration.

The behavior is illustrated by the following script:

set term pngcairo size 1200,800
set output 'xsin1x.png'
set samples 100000
plot [0:0.1][-0.1:0.1] x*sin(1/x) lw 2, x, -x

gnuplot version: 4.4.0, 4.5.0
OS: fedora 12

Discussion

  • output of gnuplot

     
    Attachments
  • Ethan Merritt
    Ethan Merritt
    2010-04-08

    This is a consequence of the default line properties, a standard feature of PostScript that is also used in cairo. By default, lines meeting at an angle are "mitered" like the corners of a picture frame. You can turn this off by selecting a different line property "rounded". The same is true for PostScript.
    set term pngcairo rounded

     
  • Ethan Merritt
    Ethan Merritt
    2010-04-08

    • status: open --> open-works-for-me
     
  • Ethan Merritt
    Ethan Merritt
    2010-08-26

    Default miterlimit changed to 3.8 for both PostScript and cairo terminals

    To further tweak PostScript output locally:, edit the following line in prologue.ps
    3.8 setmiterlimit

     
  • Ethan Merritt
    Ethan Merritt
    2010-08-26

    • status: open-works-for-me --> closed-works-for-me