Jupyter notebook上でグラフを書く時の設定 概要 : Jupyter notebookのグラフはデフォルトの設定だと小さいのと解像度低いのとで見づらい. そこで,見やすくするためのスニペットをメモしておく. 背景の設定 暗い背景を使いたいので jupyter-themes で調整しておく pip install jupyterthemes jt -t gruvboxd -f firacode -fs 10 -nf opensans -nfs 10 -tf opensans -tfs 115 -ofs 10 -cellw 1000 -T プロットのテーマの設定 Juliaを使う時 using Plots pyplot ( ) fsetting = Plots . Font ( "M+ 1c medium" , 10 , : hcenter , : vcenter , 0.0 , colorant" #202020") theme ( : solarized_light , linewidth = 3 , tickfont = fsetting , guidefont = fsetting , titlefont = fsetting , legendfont = fsetting ) Pythonを使う時 from matplotlib import pyplot as plt plt . style . use ( "Solarize_Light2" ) plt . rcParams [ "axes.labelcolor" ] = "#202020" plt . rcParams [ "xtick.color" ] = "#202020" plt . rcParams [ "ytick.color" ] = "#202020" plt . rcParams [ "figure.dpi" ] = 100