[<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()
polyhedron
CubePoints = [ [ 0, 0, 0 ], //0 [ 10, 0, 0 ], //1 [ 10, 7, 0 ], //2 [ 0, 7, 0 ], //3 [ 0, 0, 5 ], //4 [ 10, 0, 5 ], //5 [ 10, 7, 5 ], //6 [ 0, 7, 5 ]]; //7 CubeFaces = [ [0,1,2,3], // bottom [4,5,1,0], // front [7,6,5,4], // top [5,6,2,1], // right [6,7,3,2], // back [7,4,0,3]]; // left polyhedron( CubePoints, CubeFaces );