728x90 plot1 [Python] matplotlib으로 그래프 그리기 QT라이브러리 이용해서 GUI만들고 거기에 그래프 삽입 기타 설명 소스 주석 참고 - 소스코드 class MyWindow(QMainWindow, form_class): def __init__(self): super().__init__() self.setupUi(self) # ... 생략 def create_Graph(self): self.fig1 = plt.Figure() self.canvas1 = FigureCanvasQTAgg(self.fig1) self.y1 = np.arange(-20, 100, 2) # y축 크기 self.x1 = np.arange(0, SIZE, 1) # x축 크기 # x축 크기와 y축 크기는 같아야 함 ex) 60 x 60 self.graphLayout1.addWidget(s.. 2021. 2. 2. 이전 1 다음 728x90