0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Plot のレイアウト

Last updated at Posted at 2024-07-04

レイアウトを指定してプロットを配置

Julia の Plots パッケージを使って、複数のプロットをマトリックス形式で並べることができます。

このとき,layout 引数を使って、縦横のプロットの個数を指定することができます。以下はその方法の例です。

using Plots

# 各プロットを定義します
p1 = plot(rand(10), title="Plot 1")
p2 = plot(rand(10), title="Plot 2")
p3 = plot(rand(10), title="Plot 3")
p4 = plot(rand(10), title="Plot 4")
p5 = plot(rand(10), title="Plot 5")

# レイアウトを指定してプロットを配置します
plot(p1, p2, p3, p4, p5, layout=(2, 3))

fig.png

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?