Numpyで計算してMatplotlibで作図する環境
GUIインストール後
yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel yum install -y epel-release yum install -y python34 python34-devel yum install -y gcc-gfortran blas-devel lapack-devel freetype libpng-devel wget https://bootstrap.pypa.io/get-pip.py python3.4 get-pip.py pip3 install numpy scipy matplotlib pandas seaborn scikit-learn
# vi test.py import matplotlib.pyplot as plt import numpy as np x = np.arange(-4, 4, 0.1) y = x**2 -3 plt.ylim([-5, 5]) plt.grid() plt.plot(x, y) plt.show()
GUIで実行するとグラフが表示される
# python3.4 test.py