[파이썬, PYQT5-QtChart] 캔들스틱차트 생성, 타이틀 설정, 데이터 삽입, 색상 변경, 좌표축 설정
전체 소스 더보기 import sys from PyQt5.QtChart import QChart, QChartView, QCandlestickSeries, QCandlestickSet, QDateTimeAxis, \ QValueAxis from PyQt5.QtCore import QSize, Qt, QDateTime from PyQt5.QtGui import QPainter from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QGridLayout class MainScreen(QMainWindow): def __init__(self, wid, hei): super().__init__() self.setWindowTitle("TEST SCREE..
[파이썬, PYQT5 - QtChart] LineChart 생성, 데이터 삽입, 타이틀 설정, 색상 변경
전체 소스 더보기 import sys from PyQt5.QtChart import QLineSeries, QChart, QChartView from PyQt5.QtCore import QSize, Qt from PyQt5.QtGui import QPainter, QColor from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QGridLayout, class MainScreen(QMainWindow): def __init__(self, wid, hei): super().__init__() self.setWindowTitle("TEST SCREEN") # 프로젝트 타이틀 설정 self.setGeometry(0, 0, int(wid * .5),..