Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
5
Help us understand the problem. What is going on with this article?
@fya-hiro

jupyter notebookのTipsまとめ(警告表示,カラー変更)

More than 1 year has passed since last update.

jupyterのTipsまとめ

jupyterの便利なコマンドを忘れないように書き留めていきます.随時更新します.

警告非表示

import warnings
warnings.filterwarnings("ignore")

jupyterのカラー変更

Jupyter themeを使用する方法

pip install jupyterthemes
jt -l

Available Themes:
chesterish
grade3
gruvboxd
gruvboxl
monokai
oceans16
onedork
solarizedd
solarizedl
でこんな感じででるから,好きなの選ぶ

jt -t monokai

これがいい感じ
スクリーンショット 2019-01-13 22.38.59.png

しかし,

このままmatplotlibでplotするとlabel見えない問題

スクリーンショット 2019-01-18 15.09.37.png

対策1:facecolorを設定する

plt.figure(facecolor='w')
plt.bar(b,a)

スクリーンショット 2019-01-18 15.14.08.png

対策2:plt.stelyを設定

plt.style.use('dark_background')
plt.bar(b,a)

スクリーンショット 2019-01-18 15.17.19.png

5
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
fya-hiro
データサイエンティス/ 臨床工学技士

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
5
Help us understand the problem. What is going on with this article?