python:matplotlib:基本的な使い方
This is an old revision of the document!
Table of Contents
概要
matplotlibの必要最低限の使い方を解説します。
関数のプロット
三角関数を例に、関数のプロット方法と簡単な調節の仕方を紹介します。
sin関数のプロット
import numpy as np import matplotlib.pyplot as plt x = np.arange(-np.pi, np.pi, 0.1) y = np.sin(x) plt.plot(x, y) plt.show()
データのプロット
python/matplotlib/基本的な使い方.1516452563.txt.gz · Last modified: 2021/06/27 21:59 (external edit)