目的
これをこうしたい。
変更前 | 変更後 |
---|---|
方法
default
を最初に定義することで、Plots
の全体に設定を反映させます。
using Plots
default(
fontfamily="serif-roman",
guidefontsize=25,
tickfontsize=15,
legendfontsize=15,
margin=5Plots.mm,
)
Θ = range(-π,π,100)
fig = plot(
xlabel = "Θ",
ylabel = "sinθ",
)
plot!(fig,
Θ,
sin.(Θ),
label = :none,
)
まとめ
自分なりのdefault
を作成しておくことで、使いまわせてとても便利です。