Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

サンプルコード

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

#!/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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした