Skip to content
Snippets Groups Projects
Commit 5584f0d8 authored by Joe Garcia's avatar Joe Garcia
Browse files

matplotlib for py3 version (untested)

parent feebb7c0
Branches
No related tags found
No related merge requests found
......@@ -804,7 +804,8 @@ export CAIROVER=1.12.18
export PY2CAIROVER=1.10.0
export PYCAIROVER=1.10.0
export MOCKVER=2.0.0
export MATPLOTLIBVER=2.2.3
export MATPLOTLIB2VER=2.2.3
export MATPLOTLIBVER=3.0.2
export MPLD3VER=0.3
export MPLH5CANVASVER=0.7
export GEOSVER=3.6.2
......@@ -4987,6 +4988,34 @@ backend = Agg
EOF
SOSAYWEALL
if isPython2 ; then
make_patch matplotlib <<PATCH
--- lib/matplotlib/animation.py 2018-04-13 13:38:40.000000000 -0500
+++ lib/matplotlib/animation.py 2018-04-23 10:58:10.000000000 -0500
@@ -586,6 +586,7 @@
def __init__(self, *args, **kwargs):
if kwargs.get("extra_args") is None:
kwargs["extra_args"] = ()
+ self.save_extra_kwargs=kwargs.pop('save_extra_kwargs',dict())
super(PillowWriter, self).__init__(*args, **kwargs)
def setup(self, fig, outfile, dpi=None):
@@ -609,7 +610,7 @@
def finish(self):
self._frames[0].save(
self._outfile, save_all=True, append_images=self._frames[1:],
- duration=int(1000 / self.fps))
+ duration=int(1000 / self.fps),**self.save_extra_kwargs)
# Base class of ffmpeg information. Has the config keys and the common set
PATCH
SYSROOT="" _setup_build_install matplotlib src/optional/matplotlib-${MATPLOTLIB2VER}.tar.gz matplotlib-${MATPLOTLIB2VER}
else
make_patch matplotlib <<PATCH
--- lib/matplotlib/animation.py 2018-04-13 13:38:40.000000000 -0500
+++ lib/matplotlib/animation.py 2018-04-23 10:58:10.000000000 -0500
......@@ -5011,6 +5040,8 @@ PATCH
SYSROOT="" _setup_build_install matplotlib src/optional/matplotlib-${MATPLOTLIBVER}.tar.gz matplotlib-${MATPLOTLIBVER}
fi
}
mk_sip() {
......@@ -5496,6 +5527,34 @@ backend = \${DEFAULTSTATE}
EOF
SOSAYWEALL
if isPython2 ; then
make_patch matplotlib <<PATCH
--- lib/matplotlib/animation.py 2018-04-13 13:38:40.000000000 -0500
+++ lib/matplotlib/animation.py 2018-04-23 10:58:10.000000000 -0500
@@ -586,6 +586,7 @@
def __init__(self, *args, **kwargs):
if kwargs.get("extra_args") is None:
kwargs["extra_args"] = ()
+ self.save_extra_kwargs=kwargs.pop('save_extra_kwargs',dict())
super(PillowWriter, self).__init__(*args, **kwargs)
def setup(self, fig, outfile, dpi=None):
@@ -609,7 +610,7 @@
def finish(self):
self._frames[0].save(
self._outfile, save_all=True, append_images=self._frames[1:],
- duration=int(1000 / self.fps))
+ duration=int(1000 / self.fps),**self.save_extra_kwargs)
# Base class of ffmpeg information. Has the config keys and the common set
PATCH
SYSROOT="" _setup_build_install matplotlib src/optional/matplotlib-${MATPLOTLIB2VER}.tar.gz matplotlib-${MATPLOTLIB2VER}
else
make_patch matplotlib <<PATCH
--- lib/matplotlib/animation.py 2018-04-13 13:38:40.000000000 -0500
+++ lib/matplotlib/animation.py 2018-04-23 10:58:10.000000000 -0500
......@@ -5519,6 +5578,8 @@ SOSAYWEALL
PATCH
SYSROOT="" _setup_build_install matplotlib src/optional/matplotlib-${MATPLOTLIBVER}.tar.gz matplotlib-${MATPLOTLIBVER}
fi
}
mk_pint() {
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment