[MacPorts] #31466: py27-matplotlib say py27-pyqt4 not installed when using qt-backend
MacPorts
noreply at macports.org
Sun Oct 9 19:09:23 PDT 2011
#31466: py27-matplotlib say py27-pyqt4 not installed when using qt-backend
------------------------------------------+---------------------------------
Reporter: bussonniermatthias@… | Owner: ram@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: pyqt,matplotlib | Port: py27-matplotlib
------------------------------------------+---------------------------------
Comment(by ram@…):
The `qt4` variant seems to work fine for me:
{{{
$ port installed py27-matplotlib
The following ports are currently installed:
py27-matplotlib @1.0.1_5+qt4 (active)
$ python
Python 2.7.2 (default, Aug 22 2011, 13:53:27)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.use("Qt4Agg")
>>> import pylab
>>> pylab.plot([1,2,3,4])
[<matplotlib.lines.Line2D object at 0x1099bcb50>]
>>> pylab.show()
}}}
At which point the appropriate plot is displayed. Can you attach an
example program that's failing?
--
Ticket URL: <https://trac.macports.org/ticket/31466#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list