2015-11-07から1日間の記事一覧

<Linux> 画像表示

軽いImage Viewerを探してみた。 gthumbがよさげ。 gThumb 画像ビューア 画像表示が速く一括で画像変換もできる | Ubuntuアプリのいいところ

<Bash> プロンプト変更

プロンプトを変更してみた。 export PS1="\[\033\[1;34m\]\[!:\u@\h:\W]>\[\033[0m\]" リンク。 qiita.com Bash Prompt HOWTO https://www.gnu.org/software/bash/manual/bash.html

<Python, matplotlib, seaborn> xlim, ylimの値をゲット

seabornや、matplotlibで作ったグラフgraphのX/Yの端の座標をゲットgetする方法。 .get_xlim()の関数methodを使う。 では、一例。 seabornのFacetオブジェクトの場合、matplotlib.axes.Axesに辿り着くまでちと深い。 In [1]: import pandas as pd In [2]: im…

<Python, matplotlib> scipython.com

うろうろしてたら、こんなもの見つけた。 役にたちそうなので、リンク。 http://scipython.com/

<Python, matplotlib, pyplot> 線を描く

matplotlibで線lineを書く。 In [1]: import matplotlib.pyplot as plt In [2]: fig, ax = plt.subplots() ...: ax.hlines(y=1, xmin=0, xmax=1, colors='r', linewidths=5) ...: ax.axhline(y=1.5, xmin=0, xmax=1, color='g') ...: plt.hlines(y=[0,2,3], …