Help us understand the problem. What is going on with this article?

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

fya-hiro
データサイエンティス/ 臨床工学技士
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした