Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

gnuplot / x-y1-y2の2軸散布図(plot)

サンプルコード

引数のファイルを入力とし、グラフ化する

#!/bin/sh

do_gnuplot() {
     local     FNAME="$1"

gnuplot << _EOT_
  set terminal aqua
  set title      "Age v.s Height & Weight"
  set xlabel     "age"
  set ylabel     "height"
  set y2label    "wheight"

#  set autoscale

#  1    2  3   4       5    6    7    8   9    10  11  12       13  14
# date,FY,age,検診場所,age2,身長,体重,体脂肪率,総コレ,LDL,HDL,中性脂肪,γGTP,
  set xrange[20:50]    ; set xtics  1
  set yrange[151:176]  ; set ytics  2
  set y2range[60:110]  ; set y2tics 10
  set grid
  plot "$FNAME" using 5:6 with linespoints axes x1y1 , \
       "$FNAME" using 5:7 with points      axes x1y2
_EOT_
}

  do_gnuplot $1
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
0
Help us understand the problem. What are the problem?