>From matplotlib documentation: Unfortunatly the latest release of PyCairo for Python3 does not implement the Python wrappers needed for the GTK3Agg backend. Cairocffi can be used as a replacement which implements the correct wrapper.
OK? -- Alexandr Shadchin Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/py-matplotlib/Makefile,v retrieving revision 1.60 diff -u -p -r1.60 Makefile --- Makefile 3 Jan 2017 19:21:18 -0000 1.60 +++ Makefile 19 Feb 2017 19:53:25 -0000 @@ -5,7 +5,7 @@ COMMENT= Python charting and plotting AP MODPY_EGG_VERSION = 1.5.3 DISTNAME = matplotlib-${MODPY_EGG_VERSION} PKGNAME = py-${DISTNAME} -REVISION = 1 +REVISION = 2 CATEGORIES = graphics devel math HOMEPAGE= http://matplotlib.sourceforge.net/ @@ -39,7 +39,8 @@ BUILD_DEPENDS= ${COMMON_DEPENDS} RUN_DEPENDS= ${COMMON_DEPENDS} .if ${FLAVOR:Mpython3} -COMMON_DEPENDS += devel/py-gobject3${MODPY_FLAVOR} +COMMON_DEPENDS += devel/py-cairocffi${MODPY_FLAVOR} \ + devel/py-gobject3${MODPY_FLAVOR} # pygobject GTK3 introspection (not provided by indirect dependencies) COMMON_DEPENDS += x11/gtk+3 .else