import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 10, 100) y = np.sin(x) plt.figure(figsize=(8, 4)) plt.plot(x, y, label='sin(x)', color='b', linestyle='-', marker='o') plt.title('Simple Sin Function Plot') plt.xlabel('x') plt.ylabel('sin(x)') plt.legend() plt.show()
プログラム ダウンロード