guiqwtでpyplotを使ったグラフの作成。
matplotlibと同様にかけてストレスがない。
とりあえずメモ。
参考URLを見てもわかるように、機能としては最低限なので、今後はこれ以外のモジュールを模索していきたい。
参考:http://packages.python.org/guiqwt/reference.html#guiqwt-pyplot
matplotlibと同様にかけてストレスがない。
とりあえずメモ。
参考URLを見てもわかるように、機能としては最低限なので、今後はこれ以外のモジュールを模索していきたい。
参考:http://packages.python.org/guiqwt/reference.html#guiqwt-pyplot
import numpy as np
from guiqwt import pyplot as plt
x = np.linspace(-5, 5, 100)
plt.figure(1)
plt.subplot(2,1,1)
plt.plot(x, np.sin(x), "r+")
plt.ylabel("sin")
plt.subplot(2, 1, 2)
y = np.random.rand(len(x))
plt.plot(x, y)
plt.ylabel("random")
plt.show()
0 件のコメント:
コメントを投稿