80
49

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.

matplotlibで軸を消す

Last updated at Posted at 2018-12-08

概要

matplotlibで軸を消す方法について紹介します。
詳細は「matplotlib.axes.Axes.tick_params」で検索してください。

軸目盛りラベルを消す

消したい軸目盛りラベルの位置=Falseで消える。

ax.tick_params(labelbottom=False, labelleft=False, labelright=False, labeltop=False)

plt.tick_params(...)でもOK

軸目盛り線を消す

消したい軸目盛り線の位置=Falseで消える。

ax.tick_params(bottom=False, left=False, right=False, top=False)

plt.tick_params(...)でもOK

全部消す

ax.axis("off")

plt.axis("off")でもOK

80
49
2

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
80
49

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?