PyQtGraph with PySide producing tiny, squashed graphs (including the example code)

拈花ヽ惹草 提交于 2019-12-12 02:58:21

问题


I am running Python 3.3 with PySide 1.2.2 and PyQtGraph 0.9.8.

The problem I am having is that every graph I try and produce returns an obviously incorrect result.

This is the graph I get when I run the basic plotting example that is packaged with PyQtGraph:

Rather than what I am supposed to get:
(source: pyqtgraph.org)

Any ideas?

Thanks


回答1:


A description of the problem and solution could be found here: pyqtgraph Google Group

The problem is caused by a faulty binary installation file from Christoph Gohlke's otherwise excellent binary download page (Link).

The solution is to instead use pip:

pip install PySide




回答2:


The issue is also found in the conda packge for PySide. See the discussion at https://github.com/conda-forge/pyside-feedstock/issues/15.

It can be fixed with pip and should also be fixed on the conda forge channel soon.



来源:https://stackoverflow.com/questions/25520108/pyqtgraph-with-pyside-producing-tiny-squashed-graphs-including-the-example-cod

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!