pyqtchart

Insert QChartView to ui

瘦欲@ 提交于 2020-02-04 06:39:13
问题 I am trying to put plot candlestick and 5-days average line on a same qtchart but give two x axis plot code into a UI loader import sys from PyQt5.QtWidgets import QApplication, QWidget from PyQt5.QtGui import QIcon from PyQt5 import uic import sys from PyQt5.QtChart import QCandlestickSeries, QChart, QChartView, QCandlestickSet from PyQt5.QtWidgets import QApplication, QMainWindow from PyQt5.QtCore import Qt, QPointF from PyQt5 import QtChart as qc # load both ui file uifile_1 = 'UI/main.ui'

Install PyQt5 5.14.1 on Linux

有些话、适合烂在心里 提交于 2020-01-24 00:35:17
问题 pip3 install PyQt5 Collecting PyQt5 Using cached https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.6/tokenize.py", line 452, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-b2zw891b/PyQt5/setup.py' -

Install PyQt5 5.14.1 on Linux

巧了我就是萌 提交于 2020-01-22 02:19:07
问题 pip3 install PyQt5 Collecting PyQt5 Using cached https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.6/tokenize.py", line 452, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-b2zw891b/PyQt5/setup.py' -

install pyqtchart on elementary OS 5.1 Hera

时光毁灭记忆、已成空白 提交于 2020-01-19 04:12:54
问题 pip3 install PyQt5 Collecting PyQt5 Using cached https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.6/tokenize.py", line 452, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-b2zw891b/PyQt5/setup.py' -

install pyqtchart on elementary OS 5.1 Hera

故事扮演 提交于 2020-01-19 04:11:51
问题 pip3 install PyQt5 Collecting PyQt5 Using cached https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.6/tokenize.py", line 452, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-b2zw891b/PyQt5/setup.py' -

Attach colors of my choosing to each slice of QPieSeries

有些话、适合烂在心里 提交于 2019-12-12 21:00:44
问题 I want to make each slice of a pie chart a color of my choosing. I need to know the snytax of QPieSlice (if that is what I use) and how to attach a color to a particular slice of the pie. For example, I want the "Auto" slice to be '#00FF00', the "Employment" slice to be '#1A8CFF", etc. Below are the pieces of my pie. I have tried various things like: QPieSlice.setBrush(QPieSlice.setColor(QColor('#00FF00'))) but it does not work, and even if it did, I do not know how to attach it to a