diff -Nru matplotlib-1.5.1~rc1/debian/changelog matplotlib-1.5.1/debian/changelog --- matplotlib-1.5.1~rc1/debian/changelog 2016-03-20 10:02:35.000000000 +0000 +++ matplotlib-1.5.1/debian/changelog 2016-03-21 21:39:36.000000000 +0000 @@ -1,3 +1,25 @@ +matplotlib (1.5.1-1ubuntu1) xenial; urgency=low + + * Merge from Debian unstable. Remaining changes: + - Build-depend on language-pack-en-base instead of locales-all. + - Closes LP: #1559761 + + -- Barry Warsaw Mon, 21 Mar 2016 17:38:22 -0400 + +matplotlib (1.5.1-1) unstable; urgency=medium + + [ Julian Taylor ] + * debian/tests/control: test against wxWidgets 3.0 + - remove -dbg packages from wxagg test, not available anymore + + [ Sandro Tosi ] + * New upstream release + * debian/control + - add ffmpeg to Suggests, Required for the animation module to be save out + put to movie formats + + -- Sandro Tosi Sun, 07 Feb 2016 19:36:29 +0000 + matplotlib (1.5.1~rc1-1ubuntu3) xenial; urgency=medium * (cherry pick from Debian) Drop dbg packages from wxagg test deps, @@ -998,7 +1020,7 @@ * Depend on python-tz, remove the pytz files. Closes: #376715. -- Matthias Klose Fri, 7 Jul 2006 18:38:43 +0000 - + matplotlib (0.86.2-6) unstable; urgency=low * Added a note about numeric/numarray deps in README.debian. Closes: #376198 diff -Nru matplotlib-1.5.1~rc1/debian/control matplotlib-1.5.1/debian/control --- matplotlib-1.5.1~rc1/debian/control 2016-03-20 09:58:48.000000000 +0000 +++ matplotlib-1.5.1/debian/control 2016-03-20 22:41:10.000000000 +0000 @@ -95,6 +95,7 @@ python-tk (>= 2.5.2-1.1) Enhances: ipython Suggests: dvipng, + ffmpeg, gir1.2-gtk-3.0, ghostscript, inkscape, @@ -139,6 +140,7 @@ python3-tk Enhances: ipython3 Suggests: dvipng, + ffmpeg, gir1.2-gtk-3.0, ghostscript, inkscape, diff -Nru matplotlib-1.5.1~rc1/debian/.git-dpm matplotlib-1.5.1/debian/.git-dpm --- matplotlib-1.5.1~rc1/debian/.git-dpm 2016-01-09 18:46:00.000000000 +0000 +++ matplotlib-1.5.1/debian/.git-dpm 2016-03-20 22:41:11.000000000 +0000 @@ -1,11 +1,11 @@ # see git-dpm(1) from git-dpm package -6e26b84f9c1de9ac768f94070d36ae381af20bda -6e26b84f9c1de9ac768f94070d36ae381af20bda -6d82424219d3a4cd0abb56028b7aefe94074d759 -6d82424219d3a4cd0abb56028b7aefe94074d759 -matplotlib_1.5.1~rc1.orig.tar.gz -0876ac5b477c2018ec808ff8b177b5fffa88bfff -53376942 +cd9e4deee40f7ad808664b115c382b176b5b9036 +cd9e4deee40f7ad808664b115c382b176b5b9036 +0ef98e60d02b0531d7a73a18c4af0ef0adf2a3ce +0ef98e60d02b0531d7a73a18c4af0ef0adf2a3ce +matplotlib_1.5.1.orig.tar.gz +7a2e307bb9898893d4ff38f8f129cfa9dfe5ac92 +53375325 debianTag="debian/%e%v" patchedTag="patched/%e%v" upstreamTag="upstream/%e%u" diff -Nru matplotlib-1.5.1~rc1/debian/patches/0005-bts800803-disable-the-GitHub-Fork-Me-ribbon.patch matplotlib-1.5.1/debian/patches/0005-bts800803-disable-the-GitHub-Fork-Me-ribbon.patch --- matplotlib-1.5.1~rc1/debian/patches/0005-bts800803-disable-the-GitHub-Fork-Me-ribbon.patch 2016-01-09 18:46:00.000000000 +0000 +++ matplotlib-1.5.1/debian/patches/0005-bts800803-disable-the-GitHub-Fork-Me-ribbon.patch 2016-03-20 22:41:11.000000000 +0000 @@ -1,4 +1,4 @@ -From 0131130ce28b1525341bd86c487112ba6560c7cc Mon Sep 17 00:00:00 2001 +From 74ae8c3f8154334cafd4a295297717a8b1ff1e55 Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Sat, 9 Jan 2016 15:49:51 +0000 Subject: bts800803 disable the GitHub Fork Me ribbon @@ -8,10 +8,10 @@ 1 file changed, 6 deletions(-) diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html -index cb193d0..70f1b99 100644 +index 0a72bb0..9584bcb 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html -@@ -188,12 +188,6 @@ color: #11557C;">new updates

+@@ -171,12 +171,6 @@ color: #11557C;">new updates

diff -Nru matplotlib-1.5.1~rc1/debian/patches/0006-bts800803-dont-use-the-Raleway-font-from-the-Google-.patch matplotlib-1.5.1/debian/patches/0006-bts800803-dont-use-the-Raleway-font-from-the-Google-.patch --- matplotlib-1.5.1~rc1/debian/patches/0006-bts800803-dont-use-the-Raleway-font-from-the-Google-.patch 2016-01-09 18:46:00.000000000 +0000 +++ matplotlib-1.5.1/debian/patches/0006-bts800803-dont-use-the-Raleway-font-from-the-Google-.patch 2016-03-20 22:41:11.000000000 +0000 @@ -1,4 +1,4 @@ -From 94e09e2cb6d51f4a9ef77d76b95586744de1b6a4 Mon Sep 17 00:00:00 2001 +From 50f3ffa36218b176be6d9625ddc3e296255b422c Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Sat, 9 Jan 2016 16:03:45 +0000 Subject: bts800803 dont use the Raleway font (from the Google Fonts API) @@ -8,14 +8,14 @@ 1 file changed, 1 deletion(-) diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html -index 70f1b99..e17db11 100644 +index 9584bcb..27ddde0 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html -@@ -170,7 +170,6 @@ parents[-1].link|e }}" /> - {%- endif %} +@@ -154,7 +154,6 @@ parents[-1].link|e }}" /> {%- endblock %} {%- block extrahead %} {% endblock %} -- +- +
Sphinx {{ sphinx_version }}.{% endtrans %} +@@ -231,16 +231,6 @@ href="http://sphinx-doc.org/">Sphinx {{ sphinx_version }}.{% endtrans %}
{%- endblock %} @@ -26,4 +26,5 @@ - - - +
+ + + + + + +
+
+
+
+
+
+ + +
diff -Nru matplotlib-1.5.1~rc1/examples/misc/svg_filter_line.py matplotlib-1.5.1/examples/misc/svg_filter_line.py --- matplotlib-1.5.1~rc1/examples/misc/svg_filter_line.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/examples/misc/svg_filter_line.py 2016-01-10 22:20:20.000000000 +0000 @@ -52,7 +52,7 @@ ax.set_ylim(0., 1.) # save the figure as a string in the svg format. -from StringIO import StringIO +from io import StringIO f = StringIO() plt.savefig(f, format="svg") diff -Nru matplotlib-1.5.1~rc1/examples/misc/svg_filter_pie.py matplotlib-1.5.1/examples/misc/svg_filter_pie.py --- matplotlib-1.5.1~rc1/examples/misc/svg_filter_pie.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/examples/misc/svg_filter_pie.py 2016-01-10 22:20:20.000000000 +0000 @@ -42,7 +42,7 @@ # save -from StringIO import StringIO +from io import StringIO f = StringIO() plt.savefig(f, format="svg") diff -Nru matplotlib-1.5.1~rc1/examples/user_interfaces/embedding_in_tk_canvas.py matplotlib-1.5.1/examples/user_interfaces/embedding_in_tk_canvas.py --- matplotlib-1.5.1~rc1/examples/user_interfaces/embedding_in_tk_canvas.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/examples/user_interfaces/embedding_in_tk_canvas.py 2016-01-10 22:20:20.000000000 +0000 @@ -3,7 +3,11 @@ import matplotlib as mpl import numpy as np -import Tkinter as tk +import sys +if sys.version_info[0] < 3: + import Tkinter as tk +else: + import tkinter as tk import matplotlib.backends.tkagg as tkagg from matplotlib.backends.backend_agg import FigureCanvasAgg diff -Nru matplotlib-1.5.1~rc1/examples/user_interfaces/svg_histogram.py matplotlib-1.5.1/examples/user_interfaces/svg_histogram.py --- matplotlib-1.5.1~rc1/examples/user_interfaces/svg_histogram.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/examples/user_interfaces/svg_histogram.py 2016-01-10 22:20:20.000000000 +0000 @@ -35,7 +35,7 @@ import numpy as np import matplotlib.pyplot as plt import xml.etree.ElementTree as ET -from StringIO import StringIO +from io import StringIO import json plt.rcParams['svg.embed_char_paths'] = 'none' diff -Nru matplotlib-1.5.1~rc1/examples/user_interfaces/svg_tooltip.py matplotlib-1.5.1/examples/user_interfaces/svg_tooltip.py --- matplotlib-1.5.1~rc1/examples/user_interfaces/svg_tooltip.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/examples/user_interfaces/svg_tooltip.py 2016-01-10 22:20:20.000000000 +0000 @@ -24,7 +24,7 @@ import matplotlib.pyplot as plt import xml.etree.ElementTree as ET -from StringIO import StringIO +from io import StringIO ET.register_namespace("", "http://www.w3.org/2000/svg") diff -Nru matplotlib-1.5.1~rc1/INSTALL matplotlib-1.5.1/INSTALL --- matplotlib-1.5.1~rc1/INSTALL 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/INSTALL 2016-01-10 22:20:20.000000000 +0000 @@ -190,28 +190,31 @@ :term:`numpy` |minimum_numpy_version| (or later) array support for python (`download numpy `_) +`setuptools `__ + Setuptools provides extensions for python package installation. + :term:`dateutil` 1.1 or later Provides extensions to python datetime handling. If using pip, easy_install or installing from source, the installer will attempt to download and install `python_dateutil` from PyPI. -`pyparsing` +`pyparsing `__ Required for matplotlib's mathtext math rendering support. If using pip, easy_install or installing from source, the installer will attempt to download and install `pyparsing` from PyPI. -libpng 1.2 (or later) +`libpng 1.2 (or later) `__ library for loading and saving :term:`PNG` files (`download `__). libpng requires zlib. -`pytz` - Used to manipulate time-zone aware datetimes. +`pytz `__ + Used to manipulate time-zone aware datetimes. http://pypi.python.org/pypi/pytz :term:`freetype` 2.3 or later library for reading true type font files. -``cycler`` 0.9 or later +`cycler `__ 0.9 or later Composable cycle class used for constructing style-cycles @@ -239,11 +242,11 @@ Optional external programs ^^^^^^^^^^^^^^^^^^^^^^^^^^ -ffmpeg/avconv or mencoder +`ffmpeg `__/`avconv `__ or `mencoder `__ Required for the animation module to be save out put to movie formats. -ImageMagick +`ImageMagick `__ Required for the animation module to be able to save to animated gif. Optional dependencies @@ -253,7 +256,7 @@ If Pillow is installed, matplotlib can read and write a larger selection of image file formats. -pkg-config +`pkg-config `__ A tool used to find required non-python libraries. This is not strictly required, but can make installation go more smoothly if the libraries and headers are not in the expected locations. diff -Nru matplotlib-1.5.1~rc1/lib/matplotlib/artist.py matplotlib-1.5.1/lib/matplotlib/artist.py --- matplotlib-1.5.1~rc1/lib/matplotlib/artist.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/lib/matplotlib/artist.py 2016-01-10 22:20:20.000000000 +0000 @@ -1094,7 +1094,7 @@ match = self._get_valid_values_regex.search(docstring) if match is not None: - return match.group(1).replace('\n', ' ') + return re.sub("\n *", " ", match.group(1)) return 'unknown' def _get_setters_and_targets(self): diff -Nru matplotlib-1.5.1~rc1/lib/matplotlib/tests/test_image.py matplotlib-1.5.1/lib/matplotlib/tests/test_image.py --- matplotlib-1.5.1~rc1/lib/matplotlib/tests/test_image.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/lib/matplotlib/tests/test_image.py 2016-01-10 22:20:20.000000000 +0000 @@ -2,26 +2,32 @@ unicode_literals) from matplotlib.externals import six +import sys +import io +import os import numpy as np -from matplotlib.testing.decorators import image_comparison, knownfailureif, cleanup +from matplotlib.testing.decorators import (image_comparison, + knownfailureif, cleanup) from matplotlib.image import BboxImage, imread, NonUniformImage from matplotlib.transforms import Bbox from matplotlib import rcParams import matplotlib.pyplot as plt -from nose.tools import assert_raises -from numpy.testing import assert_array_equal, assert_array_almost_equal -import io -import os +from numpy.testing import assert_array_equal + + +import nose try: from PIL import Image + del Image HAS_PIL = True except ImportError: HAS_PIL = False + @image_comparison(baseline_images=['image_interps']) def test_image_interps(): 'make the basic nearest, bilinear and bicubic interps' @@ -447,12 +453,52 @@ im = NonUniformImage(ax) im.set_cmap('Blues') + @cleanup def test_nonuniformimage_setnorm(): ax = plt.gca() im = NonUniformImage(ax) im.set_norm(plt.Normalize()) + +@cleanup +def test_minimized_rasterized(): + # This ensures that the rasterized content in the colorbars is + # only as thick as the colorbar, and doesn't extend to other parts + # of the image. See #5814. While the original bug exists only + # in Postscript, the best way to detect it is to generate SVG + # and then parse the output to make sure the two colorbar images + # are the same size. + if sys.version_info[:2] < (2, 7): + raise nose.SkipTest("xml.etree.ElementTree.Element.iter " + "added in py 2.7") + + from xml.etree import ElementTree + + np.random.seed(0) + data = np.random.rand(10, 10) + + fig, ax = plt.subplots(1, 2) + p1 = ax[0].pcolormesh(data) + p2 = ax[1].pcolormesh(data) + + plt.colorbar(p1, ax=ax[0]) + plt.colorbar(p2, ax=ax[1]) + + buff = io.BytesIO() + plt.savefig(buff, format='svg') + + buff = io.BytesIO(buff.getvalue()) + tree = ElementTree.parse(buff) + width = None + for image in tree.iter('image'): + if width is None: + width = image['width'] + else: + if image['width'] != width: + assert False + + if __name__=='__main__': import nose nose.runmodule(argv=['-s','--with-doctest'], exit=False) diff -Nru matplotlib-1.5.1~rc1/lib/matplotlib/_version.py matplotlib-1.5.1/lib/matplotlib/_version.py --- matplotlib-1.5.1~rc1/lib/matplotlib/_version.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/lib/matplotlib/_version.py 2016-01-10 22:20:20.000000000 +0000 @@ -20,8 +20,8 @@ # setup.py/versioneer.py will grep for the variable names, so they must # each be defined on a line of their own. _version.py will just call # get_keywords(). - git_refnames = " (tag: v1.5.1rc1, v1.5.x)" - git_full = "9d76fd4e92f00d7a314b4d601a540a0e2513dab3" + git_refnames = " (tag: v1.5.1)" + git_full = "be91fac9fa2b7250080557e723af75124659da4e" keywords = {"refnames": git_refnames, "full": git_full} return keywords diff -Nru matplotlib-1.5.1~rc1/lib/mpl_examples/misc/svg_filter_line.py matplotlib-1.5.1/lib/mpl_examples/misc/svg_filter_line.py --- matplotlib-1.5.1~rc1/lib/mpl_examples/misc/svg_filter_line.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/lib/mpl_examples/misc/svg_filter_line.py 2016-01-10 22:20:20.000000000 +0000 @@ -52,7 +52,7 @@ ax.set_ylim(0., 1.) # save the figure as a string in the svg format. -from StringIO import StringIO +from io import StringIO f = StringIO() plt.savefig(f, format="svg") diff -Nru matplotlib-1.5.1~rc1/lib/mpl_examples/misc/svg_filter_pie.py matplotlib-1.5.1/lib/mpl_examples/misc/svg_filter_pie.py --- matplotlib-1.5.1~rc1/lib/mpl_examples/misc/svg_filter_pie.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/lib/mpl_examples/misc/svg_filter_pie.py 2016-01-10 22:20:20.000000000 +0000 @@ -42,7 +42,7 @@ # save -from StringIO import StringIO +from io import StringIO f = StringIO() plt.savefig(f, format="svg") diff -Nru matplotlib-1.5.1~rc1/lib/mpl_examples/user_interfaces/embedding_in_tk_canvas.py matplotlib-1.5.1/lib/mpl_examples/user_interfaces/embedding_in_tk_canvas.py --- matplotlib-1.5.1~rc1/lib/mpl_examples/user_interfaces/embedding_in_tk_canvas.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/lib/mpl_examples/user_interfaces/embedding_in_tk_canvas.py 2016-01-10 22:20:20.000000000 +0000 @@ -3,7 +3,11 @@ import matplotlib as mpl import numpy as np -import Tkinter as tk +import sys +if sys.version_info[0] < 3: + import Tkinter as tk +else: + import tkinter as tk import matplotlib.backends.tkagg as tkagg from matplotlib.backends.backend_agg import FigureCanvasAgg diff -Nru matplotlib-1.5.1~rc1/lib/mpl_examples/user_interfaces/svg_histogram.py matplotlib-1.5.1/lib/mpl_examples/user_interfaces/svg_histogram.py --- matplotlib-1.5.1~rc1/lib/mpl_examples/user_interfaces/svg_histogram.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/lib/mpl_examples/user_interfaces/svg_histogram.py 2016-01-10 22:20:20.000000000 +0000 @@ -35,7 +35,7 @@ import numpy as np import matplotlib.pyplot as plt import xml.etree.ElementTree as ET -from StringIO import StringIO +from io import StringIO import json plt.rcParams['svg.embed_char_paths'] = 'none' diff -Nru matplotlib-1.5.1~rc1/lib/mpl_examples/user_interfaces/svg_tooltip.py matplotlib-1.5.1/lib/mpl_examples/user_interfaces/svg_tooltip.py --- matplotlib-1.5.1~rc1/lib/mpl_examples/user_interfaces/svg_tooltip.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/lib/mpl_examples/user_interfaces/svg_tooltip.py 2016-01-10 22:20:20.000000000 +0000 @@ -24,7 +24,7 @@ import matplotlib.pyplot as plt import xml.etree.ElementTree as ET -from StringIO import StringIO +from io import StringIO ET.register_namespace("", "http://www.w3.org/2000/svg") diff -Nru matplotlib-1.5.1~rc1/src/_backend_agg.cpp matplotlib-1.5.1/src/_backend_agg.cpp --- matplotlib-1.5.1~rc1/src/_backend_agg.cpp 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/src/_backend_agg.cpp 2016-01-10 22:20:20.000000000 +0000 @@ -210,10 +210,10 @@ } } - r.x1 = std::max(0, r.x1 - 1); - r.y1 = std::max(0, r.y1 - 1); - r.x2 = std::max(r.x2 + 1, (int)width); - r.y2 = std::max(r.y2 + 1, (int)height); + r.x1 = std::max(0, r.x1); + r.y1 = std::max(0, r.y1); + r.x2 = std::min(r.x2 + 1, (int)width); + r.y2 = std::min(r.y2 + 1, (int)height); return r; } diff -Nru matplotlib-1.5.1~rc1/tests.py matplotlib-1.5.1/tests.py --- matplotlib-1.5.1~rc1/tests.py 2016-01-02 21:38:46.000000000 +0000 +++ matplotlib-1.5.1/tests.py 2016-01-10 22:20:20.000000000 +0000 @@ -67,5 +67,6 @@ from matplotlib.testing import disable_internet disable_internet.turn_off_internet() extra_args.extend(['--eval-attr="not network"']) + sys.argv.remove('--no-network') run(extra_args)