[MacPorts] #69546: py312-matplotlib fails to install on eMac with Leopard 10.5.8 - all dependencies installed.
MacPorts
noreply at macports.org
Mon Mar 25 00:23:52 UTC 2024
#69546: py312-matplotlib fails to install on eMac with Leopard 10.5.8 - all
dependencies installed.
----------------------------+------------------------
Reporter: ilovecrts | Owner: reneeotten
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Resolution: fixed | Keywords:
Port: py-matplotlib |
----------------------------+------------------------
Comment (by kencu):
It looks like you'll need to play around with things a bit and sort out
which backend matplotlib can use on 10.5 PPC.
There are a number of them:
{{{
['GTK3Agg', 'GTK3Cairo', 'GTK4Agg', 'GTK4Cairo', 'MacOSX', 'nbAgg',
'QtAgg', 'QtCairo', 'Qt5Agg', 'Qt5Cairo', 'TkAgg', 'TkCairo', 'WebAgg',
'WX', 'WXAgg', 'WXCairo', 'agg', 'cairo', 'pdf', 'pgf', 'ps', 'svg',
'template']
}}}
and it looks like you set them like this:
{{{
import matplotlib
matplotlib.use('THE_BACKEND')
import matplotlib.pyplot as plt
}}}
I tried GTK3Cairo. It asked for py312-gobject3, which I installed. After
that, it seemed to do your plot of 1,2,3,4 OK, but -- nothing showed up on
the screen anywhere.
I'm sure I'm missing something. Perhaps you need to use 'gnuplot' or
'aquaterm' to get this to work, or maybe a different backend is a better
option.
--
Ticket URL: <https://trac.macports.org/ticket/69546#comment:19>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list