PowerPoint プレゼンテーション



Similar documents
PowerPoint プレゼンテーション

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション

cpall.dvi

理工学図書館後期 LS 講習会 きれいなグラフを作ろう! gnuplot 入門

gnuplot の使い方 gnuplot は汎用的で しかも手軽に使えるプロッティング プログラムです 計算結果をグラフにするとき に非常に便利なので ぜひ覚えてください 1 gnuplot の始め方 終わり方 gnuplot の始め方は ターミナル上のプロンプトの後ろで gnuplot と打つだけ

gnuplot.dvi

Unix * 3 PC 2 Linux, Mac *4 Windows Cygwin Cygwin gnuplot Cygwin unix emulator online gnuplot *5 matplotlib *6 SuperMongo *7 gnuplot gnuplot OS *8 Uni


練習 4 ディレクトリにあるファイルを直接指定する (cat) cat コマンドを使う (% cat ファイル名 ) と ファイルの内容を表示できた ファイル名のところにパス名を使い ディレクトリ名 / ファイル名 のように指定すると ディレクトリ内にあるファイルを直接指定できる 1 % cat _

1 1 Gnuplot gnuplot Windows gnuplot gp443win32.zip gnuplot binary, contrib, demo, docs, license 5 BUGS, Chang

Microsoft PowerPoint - lecture0610v05.pptx

2 Windows 10 *1 3 Linux 3.1 Windows Bash on Ubuntu on Windows cygwin MacOS Linux OS Ubuntu OS Linux OS 1 GUI Windows Explorer Mac Finder 1 GUI

Microsoft PowerPoint - InfPro_I6.pptx

2 A I / 58

2 I I / 61

というプロンプトだったのが gnuplot> というプロンプトに変わっていることに注意してください gnuplot を終了させるときには gnuplot> というプロンプトの後ろで quit と打ちこみます すると /home/snaoki> のようなプロンプトに戻るはずです 2 グラフを描いてみよ

GNUPLOT GNUPLOT GNUPLOT 1 ( ) GNUPLO

Microsoft Word - gnuplot

本 日 の 授 業 内 容 最 低 限 覚 えるべきUNIXコマンド pwd, ls, mkdir, cd, cp, rm, mv テキストエディタの 簡 単 な 使 い 方 テキストエディット, Jedit X,Emacs C 言 語 プログラミングの 初 歩 hello, world を 画 面

05 I I / 56

PowerPoint プレゼンテーション

y2=x2(x+1)-001.ps

gnuplot gnuplot 1 3 y = x 3 + 3x 2 2 y = sin x sin(x) x*x*x+3*x*x

文科省様式3-2集計オプションマニュアル

Microsoft PowerPoint - スハ?コン利用入門_ _UNIX利用の基礎知識.pptx

第 3 回情報基礎演習 UNIX / Linux: ファイルシステム シェルを理解しよう! 谷口貴志 Panda に login し 情報基礎演習クラスの VDI から Ubuntu に接続し Linux に login した後, 左 上の Activity 端末のアイオン をクリック 端末 を立ち

programmingII2019-v01

Vol.7

Microsoft Word - tb01.doc

Microsoft PowerPoint - Borland C++ Compilerの使用方法(v1.1).ppt [互換モード]

図 1: 場所をクリックし ホームフォルダーをクリックすると (上図) ホーム フォルダー下にあるファイルやディレクトリの一覧を見ることができる 下図 2

きれいなグラフを作ろう!gnuplot 入門 1. 基本 1.1. プロット :test.plt plot x, sin(x) 1.2. データファイルのプロット 1:data.plt plot "data.dat" 1.3. データファイルのプロット 2:data2.plt plot "data2

I I / 68

datavis_01_

これを調べるには pwd というコマンドを使います pwd とは print working directory の頭文 字をとったもので これから意味は明らかですよね 演習 1 (a) pwd を実行した結果を書け なお 立ち上げた直後の作業用ディレクトリのことをホー ムディレクトリ もしくは単に

1.3 2 gnuplot> set samples gnuplot> plot sin(x) sin gnuplot> plot [0:6.28] [-1.5:1.5] sin(x) gnuplot> plot [-6.28:6.28] [-1.5:1.5] sin(x),co

273? C

x1 GNUPLOT 2 x4 12 x1 Gnuplot Gnuplot,,. gnuplot, PS (Post Script), PS ghostview.,.,,,.,., gnuplot,,, (x2). x1.1 Gnuplot (gnuplot, quit) gnuplot,. % g

Debian での数学ことはじめ。 - gnuplot, Octave, R 入門

PowerPoint プレゼンテーション

X Window System X X &

賞 状 を 作 ってみよう 1- 賞 状 フォルダを 使 用 賞 状 のテンプレートから ワードで 賞 状 の 文 章 を 作 成 します あらかじめ EXCEL で 作 成 した 受 賞 者 の 名 簿 から 学 年 クラス 名 前 を 入 れて 印 刷 します 1Excel の 賞 状 名 簿.

PowerPoint プレゼンテーション - 物理学情報処理演習

ネットワークシステム管理 #01

1. アクセスする 2. 簡 易 検 索 画 面 (fig. 1) アクセスすると 最 初 に 出 る 画 面 です 検 索 語 入 力 ボックスにキーワードを 入 力 して 論 文 検 索 ボタンをクリックし ます 3. ボックス 下 部 のチェック 項

tebiki00.dvi

ネットワークシステム管理 #01

WinXPBook.indb

( ) kadai4, kadai4.zip.,. 3 cos x [ π, π] Python. ( 100 ), x cos x ( ). (, ). def print cos(): print cos()

3.Cygwin で日本語を使いたい Cygwin で以下のコマンドを実行すると それ以降 メッセージが日本語になります export LANG=ja_JP.UTF-8 これは 文字コードを日本語の UTF-8 に設定することを意味しています UTF-8 は Cygwin で標準の文字コードで, 多

Microsoft PowerPoint - JohoEnshuu06_07.ppt

Microsoft PowerPoint - 14Gnuplot.ppt

情報処理概論(第二日目)

初めてのプログラミング

GNU Emacs GNU Emacs

PowerPoint Presentation

1 ログインとログアウト 1.1 ログイン ログイン画面で [ password ] 欄にパスワードを入力します (図 1) 図 1 ログイン画面 正しくログインができると Ubuntu のデスクトップ画面 図2 が表示されます 図2 Ubuntu デスクトップ画面 2

プログラミングI 第2回 数理物理,総合理学等向け

スライド 1

<4D F736F F D C97F195CF8AB DEC90E096BE8F912091E6312E313294C52E646F63>

PowerPoint プレゼンテーション

Microsoft Word - Fortran2011.doc

大阪ガス株式会社 情報通信部 御中

PowerPoint Presentation

スライド 1

_責)Wordトレ2-1章_斉

ソフトウェア基礎 Ⅰ Report#2 提出日 : 2009 年 8 月 11 日 所属 : 工学部情報工学科 学籍番号 : K 氏名 : 當銘孔太

<4D F736F F F696E74202D E3F FC96E55F F554E CC8AEE D8EAF2E B8CDD8AB B83685D>

Microsoft Word - P doc


Microsoft Word - P doc

160420c_unix.pptx

Microsoft PowerPoint コンピュータ物理2_第1回.pptx

PowerPoint Presentation

-2 gnuplot( ) j ( ) gnuplot /shell/myscript 1

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

目 次 Ⅰ 集 計 支 援 ツールの 準 備 に 関 するQ&A 1 H27 集 計 支 援 ツール.zip ファイルを 展 開 して 作 成 した,1 ~4のフォルダはどのように 利 用 すればよいか? Ⅱ 必 要 なファイルの 準 備 に 関 するQ&A 1 解 答 回 答 状 況 ファイルや,

病 棟 担 当 者 の 操 作 I. 毎 月 の 病 棟 年 月 ファイルの 作 成 起 動 用 ファイル を 開 き 年 月 と 病 棟 を 指 定 して[ 病 棟 年 月 ファイルを 開 く]ボタンを 押 す か 病 棟 セルをダブルクリックすることで 対 象 の 年 月 ファイルが 開 く 該

情報処理概論(第二日目)


スライド 1

重力データ解析(3回目) 潮汐計算

電話機のファイル形式

研究者情報データベース

0_テキストマイニング環境構築_mac

ゲートウェイのファイル形式

■ディレクトリ

Microsoft Word - 操作マニュアル(石油コンビナート_オフラインソフト編)_v0.2.doc

<4D F736F F D B68F918DEC90AC89898F4B899E977095D2816A2E646F63>

目 次 1. 大 学 情 報 データベースシステムの 使 用 方 法 について EXCEL 一 括 登 録 EXCEL ダウンロード 検 索 条 件 の 指 定 プレビュー EXCEL ダウンロード(データ 抽 出 あ

PowerPoint プレゼンテーション

GrADS の使い方 GrADS(Grid Analysis and Display System) は おもに 客観解析データのような格子点データを地図上に作図するために使われるアプリケーションです 全球スケールの気象を扱う分野で広く使われています GrADS は Unix 系の OS 上でよく利

資料

アドイン翻訳について

スライド 1

k_seminar_hands_on_for_linux_beginner.pptx

情報処理概論(第二日目)

Transcription:

テーマ1 データの 処 理 と 加 工 後 半 :CUI 編

今日の内容について 次回はひたすらターミナル窓でコマンドを打って 実習になります コマンドについて ターミナルの利用 Gnuplotについて 要ブックマーク http://lowrank.net/gnuplot/intro/basic.html 参考 コマンドについての資料 http://tsubame.gsic.titech.ac.jp/tutorials の UNIX入門 のテキスト

CUIの 特 長 コンピュータはもともとキーボードだけで 使 える コマンド( 命 令 )を 打 ちさえすればやってくれる 明 快 コマンドを 勉 強 すればするほど 熟 練 者 になれる 今 日 はひたすらキーボードを 打 つだけ! 注 意 :コマンドをひとつ 実 行 するたび 何 が 起 きたか よく 確 かめよう

Documentsフォルダの整理 il1kaiという名前のフォルダを作って先週のファイルを移す $ pwd $ ls $ cd Documents ; ls $ mkdir il1kai ; ls $ mv fig2 il1kai $ mv fig5 il1kai $ mv *.xlsx il1kai $ mv *.docx il1kai $ ls $ cd il1kai $ pwd $ ls $ cd.. ; pwd Documentsフォルダへ移動 新しいフォルダができている 移動したファイルはなくなっている il1kaiディレクトリに移動 ファイルがコピーされてきている Documentsフォルダへ戻る pwd print where directory ls list cd change directory mkdir make directory mv move.. ひとつ上のディレクトリ ワイルドカード 任意の文 字列にマッチ

指 の 体 操 開 始!

gnuplot 簡 単 紹 介 以 下 のコマンドをターミナル 窓 に 打 ち 込 んでいきなさい コマンド をひとつ 打 つたび 何 が 起 きるか よく 観 察 しましょう $ cd ~/Documents $ mkdir gnutest $ ls $ cd gnutest $ pwd ; ls sample.dataとsampleplot.plotをダウンロードしてこのディレ クトリに 置 きなさい open a coteditor ファイル 名 で 中 身 を 見 てみましょう $ gnuplot gnuplot 起 動 コマンド gnuplotはcuiツール

gnuplotでサインカーブ gnuplot> plot sin(x) gnuplot> set terminal gnuplot> set terminal pngcairo gnuplot> set output test.png" gnuplot> plot sin(x) gnuplot> set terminal pdfcairo gnuplot> set output test.pdf" gnuplot> plot sin(x) gnuplot> set terminal aqua gnuplot> plot sin(x) gnuplot> exit 終了 $ ls $ open test.png $ open test.pdf png形式の画像 ビットマップ形式画像 pdf形式の画像 ベクトル形式画像 両者の違い 違いの理由 それぞれの用途 教科書2.3 画像ファイル p49

複数グラフ グラフの範囲指定 Terminal type set to 'aqua' gnuplot> plot sin(x) gnuplot> plot cos(x) gnuplot> plot sin(x),cos(x) gnuplot> set xrange [-pi:pi] gnuplot> plot sin(x),cos(x) gnuplot> set autoscal gnuplot> plot sin(x),cos(x)

対数グラフ gnuplot> plot exp(x) gnuplot> set logscale y gnuplot> replot gnuplot> unset logscale y gnuplot> replot gnuplot>

データファイルのデータを散布図に gnuplot> plot "sample.data gnuplot> plot "sample.data" with linespoints sample.data の中身 数値データの並んだプ レーンテキストファイル の行は注釈行 # sample data #xy 0.278 2.4739 0.398 3.6995 0.522 4.1761 0.743 5.5990 0.911 7.1240 0.937 7.4567 1.022 8.2219 1.398 12.481 1.521 13.690 1.843 18.079

近似直線 http://lowrank.net/gnuplot/intro/plotfunc.html gnuplot> f(x)=a*x+b gnuplot> fit f(x) sample.data via a,b gnuplot> print a 9.73401331366569 gnuplot> print b -1.01826094517168 gnuplot> print f(1.3) 11.6359563625937 gnuplot> plot "sample.data",f(x) 多項式あてはめ

出力 gnuplot> set terminal pngcairo Terminal type set to 'pngcairo' Options are ' background "#ffffff" enhanced fontscale 1.0 size 640, 480 ' gnuplot> set output "samplefit.png" gnuplot> plot "sample.data",f(x) gnuplot> exit $ ls fit.log sample.data $ open samplefit.png samplefit.png

スクリプトファイルとその実行 Sampleplot.plot の中身 実行させる命令を 予めファイルに書 いたもの $ gnuplot sampleplot.plot $ ls fit.log sample.data sampleplot.plot $ open samplefit.pdf set terminal pdfcairo set output "samplefit.pdf f(x)=a*x*x+b*x+c fit f(x) "sample.data" via a,b,c print a print b print c plot "sample.data",f(x) スクリプトの実行 samplefit.pdf samplefit.png

指 の 体 操 と gnuplotの 簡 単 説 明 おしまい

共 通 教 材 の 配 布 説 明 http://www.is.c.titech.ac.jp/edu/2016-infoliteracy2/il2adata/dataset/ Il2a-dataフォルダが 解 凍 されてダウンロードされてくる ダウンロードフォルダからDocumentsフォルダに 移 して 作 業 を 行 おう Il2a-dataフォルダの 中 身 をFinderで 確 認 しよう plot/images のフォルダは 最 初 空 っぽなことを 確 認 しておく

実習C 図5と図6の折れ線 http://www.is.c.titech.ac.jp/edu/2016-infoliteracy2/il2a-data/exc-figs56/ plotフォルダのfig5-all-etime-size.plotをテキストエディタで 見てみよう 実行したら何が起きるか $ cd ~/Documents ; ls $ cd il2a-data ; ls README.md he1 cnm he2 tabキー hn plot 長いファイル名を指定すると き全部打つ必要はありません 少し打ってtabキーを押すと あとは自動補完してくれます $ cd plot $ ls fig2-cnm-joins-time-series.plot fig5-all-etime-size.plot fig3-cnm-ratio-joins.plot images $ open -a coteditor fig5-all-etime-size.plot

実習C 図5と図6の折れ線 http://www.is.c.titech.ac.jp/edu/2016-infoliteracy2/il2a-data/exc-figs56/ fig5-all-etime-size.plotを実行しよう $ gnuplot fig5-all-etime-size.plot 起きたことの確認 $ ls fig2-cnm-joins-time-series.plot fig3-cnm-ratio-joins.plot images $ cd images $ ls fig5-all-etime-size.pdf $ open fig5-all-etime-size.pdf fig5-all-etime-size.plot

図6は図5のスクリプトを参考にして 自分で生成すること スクリプトファイルの名前は fig6-tw-etime-size-m2.plot として下さい 図6は図5と同様なので fig6-tw-etime-size-m2.plotはfig5all-etime-size.plotをコピーしたものを修正して作ります ファイルのコピーは cp コマンドで行います cp コピー元ファイル コピー先ファイル

$ cd.. $ ls fig2-cnm-joins-time-series.plot fig5-all-etime-size.plot fig3-cnm-ratio-joins.plot images $ cp fig5-all-etime-size.plot fig6-tw-etime-size-m2.plot $ ls fig2-cnm-joins-time-series.plot fig6-tw-etime-size-m2.plot fig3-cnm-ratio-joins.plot images fig5-all-etime-size.plot $ open -a coteditor fig6-tw-etime-size-m2.plot

fig6-tw-etime-size-m2.plotをエディタで修正 HE のデータは he2/etime-size-m.data です HEのデータは he1/etime-size-m.data です HNのデータは hn/etime-size-m.data です グラフの出力するpdfファイルの名前は images/fig6-tw-etime-size-m.pdf coteditorで修正し 保存します gnuplotコマンドでfig6-tw-etime-size-m2.plot を実行させます

$ cat fig6-tw-etime-size-m2.plot set encoding utf8 set terminal pdf catはファイルの 中 身 をその 場 で 確 認 するコマンド set style line 1 linewidth 4 dashtype 1 linecolor rgb "black" set style line 2 linewidth 4 dashtype 2 linecolor rgb "black" set style line 3 linewidth 4 dashtype 3 linecolor rgb "black" set style line 4 linewidth 4 dashtype 4 linecolor rgb "black" $ gnuplot fig6-tw-etime-size-m2.plot $ cd images $ ls fig5-all-etime-size.pdf fig6-tw-etime-size-m.pdf $ open fig6-tw-etime-size-m.pdf set output "images/fig6-tw-etime-size-m.pdf" set xlabel "Size of Social Network" set ylabel "Elapsed Time [sec]" plot "../he2/etime-size-m.data" title "HE'" with lines linestyle 3, "../he1/etime-size-m.data" title "HE" with lines linestyle 2, "../hn/etime-size-m.data" title "HN" with lines linestyle 1

実習B 図3と図7の散布図 http://www.is.c.titech.ac.jp/edu/2016-infoliteracy2/il2a-data/exb-fig3/ $ cd ~/Documents/il2a-data/plot ; ls fig2-cnm-joins-time-series.plot fig6-tw-etime-size-m2.plot fig3-cnm-ratio-joins.plot images fig5-all-etime-size.plot $ gnuplot fig3-cnm-ratio-joins.plot $ cd images $ ls -l 図3のpdf画像ファ イルは巨大 total 4213 -rw-r--r-- 1 16PT0001 _lpoperator 2109282 6 15 13:56 fig3-cnm-ratio-join.pdf -rw-r--r--@ 1 16PT0001 _lpoperator 24391 6 15 13:13 fig5-all-etime-size.pdf -rw-r--r--@ 1 16PT0001 _lpoperator 22967 6 15 13:43 fig6-tw-etime-size-m.pdf $ open fig3-cnm-ratio-join.pdf

図3の散布図について 図3のデータファイルは cnm/ratio-join.data 11.1MBもあり エディタで表示させるのも時間が掛かる 427,794行のファイル plot/fig3-cnm-ratio-joins.plotを実行して描かれる散布図の pdfファイルの不適切な点を修正する fig3-cnm-ratiojoins2.plotを作成せよ

図3 fig3-cnm-ratio-joins2.plot fig3-cnm-ratio-joins.plot をコピーしてスクリプトファイル fig3-cnm-ratio-joins2.plot を作り 片対数グラフに変更し 画像ファイル形式も.pngに変更します $ cd.. ; pwd ; ls /home/usr0/16pt0001/documents/il2a-data/plot fig2-cnm-joins-time-series.plot fig6-tw-etime-size-m2.plot fig3-cnm-ratio-joins.plotimages fig5-all-etime-size.plot $ cp fig3-cnm-ratio-joins.plot fig3-cnm-ratio-joins2.plot $ open -a coteditor fig3-cnm-ratio-joins2.plot

fig3-cnm-ratio-joins2.plotを 修 正 pdf 画 像 ではなく png 画 像 に 出 力 する 出 力 するファイル 名 は images/fig3-cnm-ratio-join.png 片 対 数 グラフの 設 定 set logscale y 対 数 目 盛 り set format y "10^{%L}"

図7の散布図 fig7-hn-ratio-joins.plot fig7-hn-ratio-joins.plotは plot/fig3-cnm-ratio-joins2.plot をコピーしてきて 以下の2点を修正して描きます 修正1 図7のグラフは images/fig7-hn-ratio-join-500k.png に出力しましょう 修正2 図7のグラフの使用するデータは hn/ratio-join-500k.data です このデータを図3と同じ 片対数グラフで描きましょう

$ cd.. $ ls fig2-cnm-joins-time-series.plot fig6-tw-etime-size-m2.plot fig3-cnm-ratio-joins.plot fig3-cnm-ratio-joins2.plot images fig5-all-etime-size.plot $ cp fig3-cnm-ratio-joins2.plot fig7-hn-ratio-joins.plot $ open -a coteditor fig7-hn-ratio-joins.plot エディタで 修 正 保 存 $ gnuplot fig7-hn-ratio-joins.plot $ cd images ; ls fig3-cnm-ratio-join.pdf fig3-cnm-ratio-join.png fig5-all-etime-size.pdf $ open fig7-hn-ratio-join-500k.png fig6-tw-etime-size-m.pdf fig7-hn-ratio-join-500k.png

本日作成した以下の図とスクリプトを 圧縮ファイルでOCW-iに提出 fig5-all-etime-size.pdf fig6-tw-etime-size-m.pdf fig3-cnm-ratio-join.png fig7-hn-ratio-join-500k.png fig6-tw-etime-size-m2.plot fig7-hn-ratio-joins.plot fig3-cnm-ratio-joins2.plot Imageフォルダにある この4つのグラフ画像ファイルを graph3567.zipに圧縮してまとめ OCW-iのグラフ提出欄から提出 Plotフォルダにある この3つのgnuplotスクリプトファイ ルを script367.zipに圧縮してまと め OCW-iのグラフ提出欄から提出

おまけ Excelで扱える最大データ数 Excelのシート上 CTRL+ を一回押すとデータのある最終行 もう一回押すとシートの最大データ行に飛びます 図6 スケーラビリティの実験 で調べたようなデータの個数 つまり550万個ぶんのデータはExcelでは扱えません