本日は pythonで使えるグラフ描画ツール Bokeh の練習として行列演算の結果の可視化をしてみようと思います. 例えば, 2x2行列 R(\theta)=\begin{bmatrix} \cos\theta& -\sin\theta\\ \sin\theta& \cos\theta \end{bmatrix} import numpy as np from bokeh.plotting import figure, output_file, show from bokeh.models import ColumnDataSource, Div from bokeh.layouts import gridplot, column def main(): xs = np.linspace(-np.pi, np.pi, 10) ys = xs Xs, Ys = np.meshgrid(xs