WANtaroHP (gnuplot tips 1)

toJA

Outline of this page

Contents


'eps' terminal

set terminal postscript eps font "Arial-narrow" 12
set output "fig_gpl_PSHD.eps"


Add 'enhanced' and 'color' modes to 'eps' terminal

set terminal postscript eps enhanced color font "Arial" 10
set output "fig_gpl_climate.eps"


'png' terminal

set terminal png
set output "fig_png_line1.png"


Read the 'csv' data

set datafile separator ","


Sample setting for time-sequence diagram

set xdata time
set timefmt "%Y/%m/%d"
set format x "%b-%Y"
set format y "%.0f"
set xtics offset 0,-4.0 rotate by 90
set ytics
set xlabel "Date" offset 0,-1.5
set ylabel "Temperature ({/Symbol \260}C)"
set xrange ["1999/01/01":"2009/12/31"]
set yrange [-50:50]


Sample setting for explanatory drawing

set size ratio -1
set xrange [-10:130]
set yrange [-30:40]
set border 0
set xtics 0,0,0
set ytics 0,0,0
set xtics nomirror
set ytics nomirror


Control the aspect ratio

Set the length of y-axis as 0.7 times length of x-axis

set size ratio 0.7

set the length of x-axis and y-axis to 1:1

set size ratio -1


Don't draw the Tic-mark label of x-axis

set format x ""


Draw the Tic-mark label of x-axis with date-month (abbreviated name)

set format x "%d-%b"


Draw the Tic-mark label of y-axis in integer

set format y "%.0f"


Change the location of the graph title

set bmargin 6
set title "Fig. Change of scale of Penstock in Japan" offset 0,-41 font "Arial-Bold,16"

toJA
inserted by FC2 system