As mentioned in #232307 (specifically https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232307#c9) there is a necessity to have a matplotlib2 to not break dependencies. There is also a growing need to migrate to py3 and so a matplotlib3 port makes sense.
I would suggest *NOT* to add a new port right now. After the default python version changed to 3.6 (ongoing work by antoine@), we could keep matplotlib 2.x as math/py-matplotlib2 (just for py27-only ports, e.g. science/py-hcluster) and update math/py-matplotlib to 3.x.
Is this still an issue? The default version of python is 3.7 now.
(In reply to Li-Wen Hsu from comment #3) Same question. The next release of math/sage (ATM 9.2-beta9) requires py-matplotlib 3.x. Sunpoet's idea of math/py-matplotlib2 seems OK.
A patch to upgrade math/py-matplotlib from 2.2.4 to 3.3.1 is available at https://people.freebsd.org/~thierry/math_py-matplotlib.diff Prerequisite: repocopy math/py-matplotlib to math/py-matplotlib2 and adjust the dependencies accordingly for the ports that do not support version 3.
Committed, thanks!
A commit references this bug: Author: thierry Date: Sat Sep 19 13:10:28 UTC 2020 New revision: 548983 URL: https://svnweb.freebsd.org/changeset/ports/548983 Log: Upgrade py-matplotlib to 3.3.1, and keep a repocopy of 2.2.4. Changelog at <https://matplotlib.org/3.3.1/users/whats_new.html>. PR: 236913 Submitted by: chitty_cloud (at) me.com Approved by: maintainer Changes: head/math/Makefile head/math/py-matplotlib/Makefile head/math/py-matplotlib/distinfo head/math/py-matplotlib/files/patch-setup.cfg head/math/py-matplotlib/files/patch-setup.py head/math/py-matplotlib/pkg-plist head/math/py-matplotlib2/ head/math/py-matplotlib2/Makefile head/math/py-matplotlib2/pkg-descr