[<matplotlib.lines.Line2D object at 0x7f1c6c06dd30>]
import matplotlib.pyplot as plt import numpy as np #그림좌표 #fig, ax = plt.subplots() # x = np.linspace(0, 2, 100) # 0, 2사이를 100개의 동일한 간격으로 설정합니다. (x2-x1)/(n-1) #x = linspace(0, 2, 100) #plot(x, x, label='linear') def my_plotter(ax, data1, data2, param_dict): out = ax.plot(data1, data2, **param_dict) return out data1, data2, data3, data4 = np.random.randn(4, 100) fig, ax = plt.subplots(1, 1) my_plo..
좌표 범례
import matplotlib.pyplot as plt import numpy as np #그림좌표 fig, ax = plt.subplots() # x = np.linspace(0, 2, 100) fig, ax = plt.subplots() ax.plot(x, x, label='linear') # 축 설명 ax.plot(x, x**2, label='quadratic') ax.plot(x, x**3, label='cubic') ax.set_xlabel('x label') ax.set_ylabel('y label') ax.set_title("Simple Plot") ax.legend() plt.show()