- to plot grayscale image data, it's nice to code
# image_data.shape must be (a, b)
plt.imshow(image_data, cmap=matplotlib.cm.binary, interpolation="nearest")
plt.show()
binary color map: matplotlib.cm.binary
- to concatenate tuples
# image_data.shape must be (a, b)
plt.imshow(image_data, cmap=matplotlib.cm.binary, interpolation="nearest")
plt.show()
binary color map: matplotlib.cm.binary
%reload_ext autoreload
%autoreload 2
| type currency_t = JPY | USD | EUR | AUD | GBP | |
| let to_int ccy = match ccy with | |
| | JPY -> 0 | |
| | USD -> 1 | |
| | EUR -> 2 | |
| | AUD -> 3 | |
| | GBP -> 4 | |
| let currencies = [|JPY;USD;EUR;AUD;GBP|] |
| GSL - GNU Scientific Library - GNU Project - Free Software Foundation (FSF) | |
| ライブラリの使用方法についてはmanual | |
| http://www.gnu.org/software/gsl/manual/html_node/ | |
| を参照する. | |
| 以下の通りに, 最終的には動作確認することができた. | |
| 0. ダウンロード | |
| http://core.ring.gr.jp/pub/GNU/gsl/ | |
| バージョンの一番新しいものをとる. .sigは無視. |