0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

gnuplotで上に二つ目のx軸を書く

Posted at

図の上に二つ目のx軸を書くのが目標。
ここでは、gnuplotでのやり方で書く。pythonでの作図も勉強し次第追記したいと思っている。

結論

要は、plotコマンドを使う際にaxis x1y1, axis x2y1みたいにして書けばいい。

例)y軸を共通でもつ場合、

plot "data.txt" using 1:3 axis x1y1, "data.txt" using 2:3 axis x2y1

これで、data.txtの3列目を共通のy軸としながら二つのx軸を持つグラフを書ける。

目盛や範囲は、xとしていたところをx2とすればOK.
例) set x2range [10:100]

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?