Compare commits
138 Commits
python-mat
...
f22
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
53aef6c52e | ||
|
|
8e6fb6a047 | ||
|
|
95c4d0eaf5 | ||
|
|
cfae272b51 | ||
|
|
c901c6602b | ||
|
|
96f1b73a85 | ||
|
|
e065ba8c72 | ||
|
|
108153e46c | ||
|
|
69fbdf849b | ||
|
|
a0ff1b7b0d | ||
|
|
a9a2c96250 | ||
|
|
5ddd160fd3 | ||
|
|
13c730c10e | ||
|
|
13ef95ae8f | ||
|
|
b7fd65cd9f | ||
|
|
b9a2f5516d | ||
|
|
9411cfc02e | ||
|
|
9c2074e497 | ||
|
|
732ad8bbfe | ||
|
|
8c9cc20e2a | ||
|
|
76883b8317 | ||
|
|
98dd5e3da2 | ||
|
|
dd3b8abfa9 | ||
|
|
3d4898c537 | ||
|
|
3b5c19b1c1 | ||
|
|
d42870f60f | ||
|
|
68e041327a | ||
|
|
7731b0f8b4 | ||
|
|
8736c81a32 | ||
|
|
12e8a6231d | ||
|
|
b69e56e8d0 | ||
|
|
be26c9bf21 | ||
|
|
f7ffbd877f | ||
|
|
14b1524911 | ||
|
|
674876c696 | ||
|
|
81fc2e8024 | ||
|
|
0a7be6ae46 | ||
|
|
e5fc5ec392 | ||
|
|
90bbb1ede9 | ||
|
|
c4143b65b0 | ||
|
|
83a27676aa | ||
|
|
adaf51ea57 | ||
|
|
ab00be2ba0 | ||
|
|
b2c1943ea5 | ||
|
|
c89b645d96 | ||
|
|
b58a0f66d3 | ||
|
|
eb9a122389 | ||
|
|
11c0529c89 | ||
|
|
bce7fc7101 | ||
|
|
f2d3f53a8d | ||
|
|
03883d02e8 | ||
|
|
5e8c5cddc3 | ||
|
|
cfeed65034 | ||
|
|
8a5f96fc9d | ||
|
|
2114656575 | ||
|
|
05e0e0bf4c | ||
|
|
887890bd4a | ||
|
|
70576db6a2 | ||
|
|
630c235008 | ||
|
|
313dac93e1 | ||
|
|
04e2e0f563 | ||
|
|
5446c87d15 | ||
|
|
15f4723084 | ||
|
|
aacc15245c | ||
|
|
e461fe631e | ||
|
|
43d2ec145e | ||
|
|
664c62f2ee | ||
|
|
c7aa1a060f | ||
|
|
51417023ef | ||
|
|
0e79a43bbf | ||
|
|
680c73ce28 | ||
|
|
06e45f0087 | ||
|
|
ab4076906b | ||
|
|
a48cf833ac | ||
|
|
f26192de70 | ||
|
|
fa5fd50bfc | ||
|
|
fd9734a7cb | ||
|
|
f48deece5c | ||
|
|
a706a1d6d8 | ||
|
|
838673b84e | ||
|
|
eb0ae8e8e8 | ||
|
|
7d37cb09bb | ||
|
|
22c9c0ba19 | ||
|
|
3d8aca5cf3 | ||
|
|
e8b7d4f3da | ||
|
|
8ff61b63f9 | ||
|
|
8e35b281db | ||
|
|
75838bcea2 | ||
|
|
5fb5eb7257 | ||
|
|
18886006d6 | ||
|
|
25dcdf9304 | ||
|
|
8e942f943d | ||
|
|
7cfd478d83 | ||
|
|
81520ceee1 | ||
|
|
3566db3f26 | ||
|
|
0ec477d6d6 | ||
|
|
9009b116df | ||
|
|
e9f8234a67 | ||
|
|
36a86160e0 | ||
|
|
61aa382649 | ||
|
|
1f8c99bdef | ||
|
|
1437e01b55 | ||
|
|
4b93d98283 | ||
|
|
1ba7111ea4 | ||
|
|
d1a8b707e3 | ||
|
|
96119e78b7 | ||
|
|
d53984287e | ||
|
|
bb617decf4 | ||
|
|
32df714ed8 | ||
|
|
0346b9d0bb | ||
|
|
5550f6f7b0 | ||
|
|
a019183ab9 | ||
|
|
f319b1c04c | ||
|
|
5ca800e2a0 | ||
|
|
1887561de2 | ||
|
|
4172d14025 | ||
|
|
e197124cb4 | ||
|
|
145fd38ec7 | ||
|
|
ee9ff45a3e | ||
|
|
644f5c067d | ||
|
|
54692bdea6 | ||
|
|
ccda7c8dee | ||
|
|
31c351b56c | ||
|
|
8217450a70 | ||
|
|
b64d991dd9 | ||
|
|
ea640f8f04 | ||
|
|
899948a65f | ||
|
|
6883dbf626 | ||
|
|
111a53d743 | ||
|
|
d22666d509 | ||
|
|
4ba8ff1ff9 | ||
|
|
ff18059e59 | ||
|
|
53d60f262b | ||
|
|
daf5031fac | ||
|
|
f217e721af | ||
|
|
634341f4c8 | ||
|
|
c3b72da3b2 | ||
|
|
87eb208f8e |
@@ -1 +0,0 @@
|
||||
matplotlib-0.82.tar.gz
|
||||
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
matplotlib-1.0.0-without-gpc.tar.gz
|
||||
/matplotlib-1.0.1-without-gpc.tar.gz
|
||||
/mpl_sampledata-1.0.1.tar.gz
|
||||
/matplotlib-1.2.0-without-gpc.tar.gz
|
||||
/matplotlib-1.3.0-without-gpc.tar.xz
|
||||
/matplotlib-1.3.1-without-gpc.tar.xz
|
||||
/matplotlib-1.4.3-without-gpc.tar.xz
|
||||
/matplotlib-1.4.3-without-extern.tar.xz
|
||||
29
20_matplotlibrc_path_search_fix.patch
Normal file
29
20_matplotlibrc_path_search_fix.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
Description: Fixes the path to search for matplotlibrc file
|
||||
Forwarded: not-needed
|
||||
Author: Sandro Tosi <morph@debian.org>
|
||||
|
||||
--- a/lib/matplotlib/__init__.py
|
||||
+++ b/lib/matplotlib/__init__.py
|
||||
@@ -658,10 +658,12 @@ def _get_data_path():
|
||||
raise RuntimeError('Path in environment MATPLOTLIBDATA not a directory')
|
||||
return path
|
||||
|
||||
- path = os.sep.join([os.path.dirname(__file__), 'mpl-data'])
|
||||
+ path = '/usr/share/matplotlib/mpl-data'
|
||||
if os.path.isdir(path):
|
||||
return path
|
||||
|
||||
+ raise RuntimeError('Could not find the matplotlib data files')
|
||||
+
|
||||
# setuptools' namespace_packages may highjack this init file
|
||||
# so need to try something known to be in matplotlib, not basemap
|
||||
import matplotlib.afm
|
||||
@@ -786,7 +788,7 @@ def matplotlib_fname():
|
||||
home, '.matplotlib', 'matplotlibrc')
|
||||
return fname
|
||||
|
||||
- path = get_data_path() # guaranteed to exist or raise
|
||||
+ path = '/etc' # guaranteed to exist or raise
|
||||
fname = os.path.join(path, 'matplotlibrc')
|
||||
if not os.path.exists(fname):
|
||||
warnings.warn('Could not find matplotlibrc; using defaults')
|
||||
14
40_bts608939_draw_markers_description.patch
Normal file
14
40_bts608939_draw_markers_description.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
Description: minor glitch in draw_markers() description
|
||||
Author: Jakub Wilk <jwilk@debian.org>
|
||||
|
||||
--- a/doc/api/api_changes.rst
|
||||
+++ b/doc/api/api_changes.rst
|
||||
@@ -1143,7 +1143,7 @@ New methods:
|
||||
|
||||
* :meth:`draw_markers(self, gc, marker_path, marker_trans, path,
|
||||
trans, rgbFace)
|
||||
- <matplotlib.backend_bases.RendererBase.draw_markers`
|
||||
+ <matplotlib.backend_bases.RendererBase.draw_markers>`
|
||||
|
||||
* :meth:`draw_path_collection(self, master_transform, cliprect,
|
||||
clippath, clippath_trans, paths, all_transforms, offsets,
|
||||
50
50_bts608942_spaces_in_param_args.patch
Normal file
50
50_bts608942_spaces_in_param_args.patch
Normal file
@@ -0,0 +1,50 @@
|
||||
Description: don't separate param and its argument with a space
|
||||
|
||||
--- a/lib/mpl_toolkits/axes_grid1/axes_divider.py
|
||||
+++ b/lib/mpl_toolkits/axes_grid1/axes_divider.py
|
||||
@@ -201,12 +201,12 @@ class Divider(object):
|
||||
def locate(self, nx, ny, nx1=None, ny1=None, axes=None, renderer=None):
|
||||
"""
|
||||
|
||||
- :param nx, nx1: Integers specifying the column-position of the
|
||||
+ :param nx,nx1: Integers specifying the column-position of the
|
||||
cell. When nx1 is None, a single nx-th column is
|
||||
specified. Otherwise location of columns spanning between nx
|
||||
to nx1 (but excluding nx1-th column) is specified.
|
||||
|
||||
- :param ny, ny1: same as nx and nx1, but for row positions.
|
||||
+ :param ny,ny1: same as nx and nx1, but for row positions.
|
||||
"""
|
||||
|
||||
figW, figH = self._fig.get_size_inches()
|
||||
|
||||
@@ -250,12 +250,12 @@ class Divider(object):
|
||||
(:class:`mpl_toolkits.axes_grid.axes_divider.AxesLocator`) for
|
||||
specified cell.
|
||||
|
||||
- :param nx, nx1: Integers specifying the column-position of the
|
||||
+ :param nx,nx1: Integers specifying the column-position of the
|
||||
cell. When nx1 is None, a single nx-th column is
|
||||
specified. Otherwise location of columns spanning between nx
|
||||
to nx1 (but excluding nx1-th column) is specified.
|
||||
|
||||
- :param ny, ny1: same as nx and nx1, but for row positions.
|
||||
+ :param ny,ny1: same as nx and nx1, but for row positions.
|
||||
"""
|
||||
return AxesLocator(self, nx, ny, nx1, ny1)
|
||||
|
||||
@@ -298,12 +298,12 @@ class AxesLocator(object):
|
||||
"""
|
||||
:param axes_divider: An instance of AxesDivider class.
|
||||
|
||||
- :param nx, nx1: Integers specifying the column-position of the
|
||||
+ :param nx,nx1: Integers specifying the column-position of the
|
||||
cell. When nx1 is None, a single nx-th column is
|
||||
specified. Otherwise location of columns spanning between nx
|
||||
to nx1 (but excluding nx1-th column) is is specified.
|
||||
|
||||
- :param ny, ny1: same as nx and nx1, but for row positions.
|
||||
+ :param ny,ny1: same as nx and nx1, but for row positions.
|
||||
"""
|
||||
self._axes_divider = axes_divider
|
||||
|
||||
19
70_bts720549_try_StayPuft_for_xkcd.patch
Normal file
19
70_bts720549_try_StayPuft_for_xkcd.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
Description: Try to use also StayPuft (a free font) for xkcd
|
||||
Author: Sandro Tosi <morph@debian.org>
|
||||
Origin: vendor
|
||||
Bug: http://bugs.debian.org/720549
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2013-10-06
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
--- a/lib/matplotlib/pyplot.py
|
||||
+++ b/lib/matplotlib/pyplot.py
|
||||
@@ -301,7 +301,7 @@ def xkcd(scale=1, length=100, randomness
|
||||
from matplotlib import patheffects
|
||||
context = rc_context()
|
||||
try:
|
||||
- rcParams['font.family'] = ['Humor Sans', 'Comic Sans MS']
|
||||
+ rcParams['font.family'] = ['Humor Sans', 'Comic Sans MS', 'StayPuft']
|
||||
rcParams['font.size'] = 14.0
|
||||
rcParams['path.sketch'] = (scale, length, randomness)
|
||||
rcParams['path.effects'] = [
|
||||
21
Makefile
21
Makefile
@@ -1,21 +0,0 @@
|
||||
# Makefile for source rpm: python-matplotlib
|
||||
# $Id$
|
||||
NAME := python-matplotlib
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
21
generate-tarball.sh
Executable file
21
generate-tarball.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#! /bin/sh
|
||||
|
||||
version=$1
|
||||
|
||||
[ -z $version ] && exit 1
|
||||
|
||||
dir=matplotlib-${version}
|
||||
file=matplotlib-${version}.tar.gz
|
||||
file=v${version}.tar.gz
|
||||
result=matplotlib-${version}-without-extern.tar.xz
|
||||
|
||||
test -f $file || wget -v https://github.com/matplotlib/matplotlib/archive/$file
|
||||
|
||||
rm -rf matplotlib-${version}
|
||||
tar xzf $file
|
||||
|
||||
rm -vr matplotlib-${version}/extern/qhull
|
||||
rm -vr matplotlib-${version}/lib/matplotlib/mpl-data/sample_data/lena.*
|
||||
|
||||
rm -f $result
|
||||
tar cJf $result $dir
|
||||
32
matplotlib-1.4.3-cbook.restrict_dict.patch
Normal file
32
matplotlib-1.4.3-cbook.restrict_dict.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
From 2e445c2c4f66f1e0de9779a3fd966aaf8d8ed2c5 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas A Caswell <tcaswell@gmail.com>
|
||||
Date: Sun, 17 May 2015 23:45:44 -0400
|
||||
Subject: [PATCH] Merge pull request #4439 from tswsl1989/restrict_dict_gdk
|
||||
|
||||
FIX : Import cbook.restrict_dict into backend_gdk
|
||||
---
|
||||
lib/matplotlib/backends/backend_gdk.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lib/matplotlib/backends/backend_gdk.py b/lib/matplotlib/backends/backend_gdk.py
|
||||
index fc705fe..024c27e 100644
|
||||
--- a/lib/matplotlib/backends/backend_gdk.py
|
||||
+++ b/lib/matplotlib/backends/backend_gdk.py
|
||||
@@ -26,7 +26,7 @@ def fn_name(): return sys._getframe(1).f_code.co_name
|
||||
from matplotlib._pylab_helpers import Gcf
|
||||
from matplotlib.backend_bases import RendererBase, GraphicsContextBase, \
|
||||
FigureManagerBase, FigureCanvasBase
|
||||
-from matplotlib.cbook import is_string_like
|
||||
+from matplotlib.cbook import is_string_like, restrict_dict
|
||||
from matplotlib.figure import Figure
|
||||
from matplotlib.mathtext import MathTextParser
|
||||
from matplotlib.transforms import Affine2D
|
||||
@@ -477,7 +477,7 @@ def _print_image(self, filename, format, *args, **kwargs):
|
||||
|
||||
# set the default quality, if we are writing a JPEG.
|
||||
# http://www.pygtk.org/docs/pygtk/class-gdkpixbuf.html#method-gdkpixbuf--save
|
||||
- options = cbook.restrict_dict(kwargs, ['quality'])
|
||||
+ options = restrict_dict(kwargs, ['quality'])
|
||||
if format in ['jpg','jpeg']:
|
||||
if 'quality' not in options:
|
||||
options['quality'] = rcParams['savefig.jpeg_quality']
|
||||
33
python-matplotlib-noagg.patch
Normal file
33
python-matplotlib-noagg.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
--- setupext.py.orig 2013-08-02 09:39:43.914247832 +0200
|
||||
+++ setupext.py 2013-08-02 09:40:14.785304342 +0200
|
||||
@@ -914,28 +914,13 @@ class LibAgg(SetupPackage):
|
||||
self.__class__.found_external = True
|
||||
try:
|
||||
return self._check_for_pkg_config(
|
||||
- 'libagg', 'agg2/agg_basics.h', min_version='PATCH')
|
||||
+ 'libagg', 'agg2/agg_basics.h', min_version='2.5.0')
|
||||
except CheckFailed as e:
|
||||
self.__class__.found_external = False
|
||||
return str(e) + ' Using local copy.'
|
||||
|
||||
def add_flags(self, ext):
|
||||
- if self.found_external:
|
||||
- pkg_config.setup_extension(ext, 'libagg')
|
||||
- else:
|
||||
- ext.include_dirs.append('extern/agg24/include')
|
||||
- agg_sources = [
|
||||
- 'agg_bezier_arc.cpp',
|
||||
- 'agg_curves.cpp',
|
||||
- 'agg_image_filters.cpp',
|
||||
- 'agg_trans_affine.cpp',
|
||||
- 'agg_vcgen_contour.cpp',
|
||||
- 'agg_vcgen_dash.cpp',
|
||||
- 'agg_vcgen_stroke.cpp',
|
||||
- 'agg_vpgen_segmentator.cpp'
|
||||
- ]
|
||||
- ext.sources.extend(
|
||||
- os.path.join('extern', 'agg24', 'src', x) for x in agg_sources)
|
||||
+ pkg_config.setup_extension(ext, 'libagg', default_include_dirs=["/usr/include/agg2"])
|
||||
|
||||
|
||||
class FreeType(SetupPackage):
|
||||
18
python-matplotlib-system-cxx.patch
Normal file
18
python-matplotlib-system-cxx.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
--- setupext.py.orig 2014-01-25 15:06:39.460916454 +0100
|
||||
+++ setupext.py 2014-01-25 15:06:53.080946205 +0100
|
||||
@@ -841,15 +841,6 @@
|
||||
name = 'pycxx'
|
||||
|
||||
def check(self):
|
||||
- if PY3:
|
||||
- # There is no version of PyCXX in the wild that will work
|
||||
- # with Python 3.x and matplotlib, since they lack support
|
||||
- # for the buffer object.
|
||||
- self.__class__.found_external = False
|
||||
- return ("Official versions of PyCXX are not compatible "
|
||||
- "with matplotlib on Python 3.x, since they lack "
|
||||
- "support for the buffer object. Using local "
|
||||
- "copy")
|
||||
|
||||
self.__class__.found_external = True
|
||||
old_stdout = sys.stdout
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user