Getting PySide to work with matplotlib

前端 未结 3 608
暖寄归人
暖寄归人 2020-12-05 01:19

I have tried running the example code on the SciPy website, but I get this error:

Traceback (most recent call last):
  File \".\\matplotlibPySide.py\", line          


        
3条回答
  •  無奈伤痛
    2020-12-05 01:28

    The example that you mention:

    http://www.scipy.org/Cookbook/Matplotlib/PySide

    works, but you might need to suggest the use of PySide:

    ...
    matplotlib.use('Qt4Agg')
    matplotlib.rcParams['backend.qt4']='PySide'
    import pylab
    ...
    

提交回复
热议问题