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


Groups > comp.graphics.apps.gnuplot > #1200 > unrolled thread

Horizontal grid not displaying properly

Started byhectorratia@gmail.com
First post2012-06-12 01:37 -0700
Last post2012-06-12 11:53 -0700
Articles 2 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Horizontal grid not displaying properly hectorratia@gmail.com - 2012-06-12 01:37 -0700
    Re: Horizontal grid not displaying properly sfeam <sfeam@users.sourceforge.net> - 2012-06-12 11:53 -0700

#1200 — Horizontal grid not displaying properly

Fromhectorratia@gmail.com
Date2012-06-12 01:37 -0700
SubjectHorizontal grid not displaying properly
Message-ID<43e29ec2-4e1e-4294-a60f-0c846c225064@googlegroups.com>
This image shows the problem:
http://s13.postimage.org/qu0f6r2l3/COMPexp02.png
The dashes of the horizontal grid are deformed.

The script used to plot it is:

set term png size 800,500 20
set out 'temp.png'

set style line 11 lc rgb '#808080' lt 1 lw 4
set border ls 11
set tics front nomirror
set style line 12 lc rgb '#808080' lt 0 lw 3
set grid back ls 12

set xlabel "t  (s)"
set ylabel "h (mm)"
set key right top
set key box linestyle 1

plot 'DATOS/upZZZ.out' using (($1-1)/30):($2*10) with line lw 2 lc rgb '#54BC00' title 'Exp Up', 'DATOS/downZZZ.out' using (($1-1)/50):($2*10) with line lw 2 lc rgb '#CEEA82' title 'Exp Down','YYY/XXX/volcadosondas_h.out' using 1:($2*1000) with line lw 2 lc rgb '#EF2B2D' title 'BHL Up','YYY/XXX/volcadosondas_h.out' using 1:($3*1000) with line lw 2 lc rgb '#F9B2B7' title 'BHL Down','YYY/UUU/volcadosondas_h.out' using 1:($2*1000) with line lw 2 lc rgb '#007AA5' title 'BT Up','YYY/UUU/volcadosondas_h.out' using 1:($3*1000) with line lw 2 lc rgb '#99D6DD' title 'BT Down'


Any idea about how to fix the grid?

[toc] | [next] | [standalone]


#1201

Fromsfeam <sfeam@users.sourceforge.net>
Date2012-06-12 11:53 -0700
Message-ID<jr836p$lgb$1@dont-email.me>
In reply to#1200
hectorratia@gmail.com wrote:

> This image shows the problem:
> http://s13.postimage.org/qu0f6r2l3/COMPexp02.png
> The dashes of the horizontal grid are deformed.
> 
> The script used to plot it is:
> 
> set term png size 800,500 20
> set out 'temp.png'
> 
> set style line 11 lc rgb '#808080' lt 1 lw 4
> set border ls 11
> set tics front nomirror
> set style line 12 lc rgb '#808080' lt 0 lw 3
> set grid back ls 12
> 
> set xlabel "t  (s)"
> set ylabel "h (mm)"
> set key right top
> set key box linestyle 1
> 
> plot 'DATOS/upZZZ.out' using (($1-1)/30):($2*10) with line lw 2 lc rgb
> '#54BC00' title 'Exp Up', 'DATOS/downZZZ.out' using (($1-1)/50):($2*10)
> with line lw 2 lc rgb '#CEEA82' title 'Exp
> Down','YYY/XXX/volcadosondas_h.out' using 1:($2*1000) with line lw 2 lc
> rgb '#EF2B2D' title 'BHL Up','YYY/XXX/volcadosondas_h.out' using
> 1:($3*1000) with line lw 2 lc rgb '#F9B2B7' title 'BHL
> Down','YYY/UUU/volcadosondas_h.out' using 1:($2*1000) with line lw 2 lc
> rgb '#007AA5' title 'BT Up','YYY/UUU/volcadosondas_h.out' using
> 1:($3*1000) with line lw 2 lc rgb '#99D6DD' title 'BT Down'
> 
> 
> Any idea about how to fix the grid?

Option 1:
Don't set the linewidth of the grid to lw 3.  
libgd (used by the png terminal) only knows how to antialias lines of width 1.

Option 2:
Use "set term pngcairo" rather than "set term png".  The cairo library
is much better than libgd at antialiasing.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web