diff --git a/community/python2-matplotlib/PKGBUILD b/community/python2-matplotlib/PKGBUILD index fb2b0e051..014fbcd37 100644 --- a/community/python2-matplotlib/PKGBUILD +++ b/community/python2-matplotlib/PKGBUILD @@ -10,7 +10,7 @@ pkgname=python2-matplotlib pkgver=2.2.3 -pkgrel=4 +pkgrel=5 pkgdesc="A python plotting library, making publication quality plots" arch=('x86_64') url="https://matplotlib.org" @@ -43,7 +43,7 @@ source=($pkgname-$pkgver.tar.gz::"https://github.com/matplotlib/matplotlib/archi setup.cfg) sha512sums=('d118f5d56e2f578031aba22933c0b3a4423a31a04f50f08cc1aa660186546d09692a9cf401bb5f24cb296f94fbfd8707460728d501ac2bd4a624dfa89e92949b' 'bb307885c17de71edf33dd09322aca99c2fade6dfbdf3482a7c11f2522fc40e2d41d8f51e77d2531de746906aabf3a68fa1bd8d76d48ea979c8010937713c0a9' - 'e63cd9b7a26de901815e3cdcc6a8e8f70e07bf9eed2befe4240747d245c96a4a44cc4b2fe876198b7bf055779c735d7571db2ca3904acdb1e4ddd288b3e24d2f' + '88d71e85f707c9becc1d77812770889759b4dd96ec5c5fce20361c0c1a3fe1bd6e04ba804fcd7ff0472249ec8099ec63716184975b3d609aed84bfdd0a8e05ad' 'f08c0b2e94599fdf2b736b8a655d862209934441d90f20ed872cfc128b8d2a6525763ab7cf64f2b3630e22a90798f4c52aa93b18087e9b48708d9bae34aada0b') prepare() { diff --git a/community/python2-matplotlib/python2-matplotlib-13181.diff b/community/python2-matplotlib/python2-matplotlib-13181.diff index 97ad97e7e..d24ae6271 100644 --- a/community/python2-matplotlib/python2-matplotlib-13181.diff +++ b/community/python2-matplotlib/python2-matplotlib-13181.diff @@ -1,3 +1,50 @@ +diff --git a/lib/matplotlib/backends/backend_agg.py b/lib/matplotlib/backends/backend_agg.py +index aff6cddf492..491a9b2c5d6 100644 +--- a/lib/matplotlib/backends/backend_agg.py ++++ b/lib/matplotlib/backends/backend_agg.py +@@ -391,7 +391,7 @@ def post_processing(image, dpi): + self._update_methods() + + if w > 0 and h > 0: +- img = np.fromstring(buffer, np.uint8) ++ img = np.frombuffer(buffer, np.uint8) + img, ox, oy = post_processing(img.reshape((h, w, 4)) / 255., + self.dpi) + gc = self.new_gc() +diff --git a/lib/matplotlib/dates.py b/lib/matplotlib/dates.py +index 2712d64291a..290341146d8 100644 +--- a/lib/matplotlib/dates.py ++++ b/lib/matplotlib/dates.py +@@ -1369,10 +1369,9 @@ def get_locator(self, dmin, dmax): + else: + locator = MicrosecondLocator(interval, tz=self.tz) + if dmin.year > 20 and interval < 1000: +- _log.warn('Plotting microsecond time intervals is not' +- ' well supported. Please see the' +- ' MicrosecondLocator documentation' +- ' for details.') ++ _log.warning('Plotting microsecond time intervals is not well ' ++ 'supported. Please see the MicrosecondLocator ' ++ 'documentation for details.') + + locator.set_axis(self.axis) + +diff --git a/lib/matplotlib/image.py b/lib/matplotlib/image.py +index 58a28c8f689..3bdcccf4882 100644 +--- a/lib/matplotlib/image.py ++++ b/lib/matplotlib/image.py +@@ -1447,9 +1447,9 @@ def pil_to_array(pilImage): + # return MxN luminance array of uint16 + raw = pilImage.tobytes('raw', pilImage.mode) + if pilImage.mode.endswith('B'): +- x = np.fromstring(raw, '>u2') ++ x = np.frombuffer(raw, '>u2') + else: +- x = np.fromstring(raw, '