Top Banner
鳥鳥 Python 鳥鳥鳥 鳥 7 鳥 - 鳥鳥鳥鳥鳥鳥鳥鳥鳥 Bokeh - 鳥鳥鳥 鳥鳥 鳥鳥鳥 [email protected] 鳥鳥
21

鳥取Python勉強会 第7回

Feb 22, 2017

Download

Science

Yuji Oyamada
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 鳥取Python勉強会 第7回

鳥取 Python 勉強会 第 7回- 対話的可視化ツール Bokeh -

小山田 雄仁 質問は [email protected] まで

Page 2: 鳥取Python勉強会 第7回

勉強会の運営+α•隔週 1 回 水曜日夕方 (18時以降 )•勉強会の内容 +スケジュールは githubで管理• https://github.com/charmie11/TottoriPythonSeminar

2016/03/07 2

Page 3: 鳥取Python勉強会 第7回

予定表 (Googleカレンダー )• カレンダー ID: [email protected]

3

Page 4: 鳥取Python勉強会 第7回

メーリングリスト (Googleグループ )•URL: https://groups.google.com/forum/?hl=ja#!forum/tottoripythonseminar•メーリングリスト : [email protected]

4

Page 5: 鳥取Python勉強会 第7回

今回のテーマ•可視化ツール• 小山田 : Bokeh• 白岩さん : matplotlibで heatmap

5

Page 6: 鳥取Python勉強会 第7回

Bokeh•対話的可視化ライブラリ• 最新の可視化法をエレガントかつ簡潔に使えるように• 大量のデータやストリームを扱えるように

•Bokehによる対話的可視化の流れ1.pythonプログラミング2.pythonコードから htmlファイルを生成3.htmlファイル上でグラフを操作

6

Page 7: 鳥取Python勉強会 第7回

プロットエリア,軸の調整•plotting/file/color_scatter.py•マウスでプロットする領域をずらせる

7

Page 8: 鳥取Python勉強会 第7回

注目領域の拡大•plotting/file/logplot.py•注目領域を指定するとプロットエリア全域へ拡大

8

Page 9: 鳥取Python勉強会 第7回

GUI(スライダーとドロップダウン )•plotting/file/logplot.py•GUIで設定したパラメータを基にプロットをリアルタイムに変更

9

Page 10: 鳥取Python勉強会 第7回

画像の埋め込み•models/image_url.py•プロットエリア内へ画像 (カラフルなロゴ )を埋め込める

10

Page 11: 鳥取Python勉強会 第7回

データの埋め込み•プロットにマウスカーソルを合わせると,埋め込みデータを表示

11

Page 12: 鳥取Python勉強会 第7回

グラフと表の一括表示•データを表,グラフとして一括表示

12

Page 13: 鳥取Python勉強会 第7回

ボックスプロット•plotting/file/boxplot.py•統計量 (平均値と分散 )の表示

13

Page 14: 鳥取Python勉強会 第7回

関係行列•plotting/file/les_mis.py

14

Page 15: 鳥取Python勉強会 第7回

ベクトル場の可視化•plotting/file/vector.py

15

Page 16: 鳥取Python勉強会 第7回

ヒートマップ•plotting/file/unemployment.py•工夫次第でセルの境界を滑らかに表示できるかも

16

Page 17: 鳥取Python勉強会 第7回

複数プロットの表示•plotting/file/grid.py

17

Page 18: 鳥取Python勉強会 第7回

プロットの種類•plotting/file/markers.html•plotting/file/properties_alpha.html

18

Page 19: 鳥取Python勉強会 第7回

実装•難しくない•Github上に大量のサンプルプログラムを公開

19

Page 20: 鳥取Python勉強会 第7回

Take home message•Bokeh良いですよ !!• 対話的にグラフを操作できるのが楽• データを埋めこむ機能も使えそう• 充実したサンプルコード,ドキュメント

•Bokeh …いけてないかも• グラフの保存形式は PNGのみサポート• 日本語の資料があまりない

20

Page 21: 鳥取Python勉強会 第7回

次回•2016年 7月 4日の週

•次回テーマ案• 並列プログラミング• 機械学習 (sk-learn)• 決定• 足立くん,内村くん,田路くん

• 他に何か?

21