Skip to content

Commit 61fa936

Browse files
committed
Merge branch 'v1.1.x' into merge-v1.1.x
2 parents 2bb91ce + 93e4d19 commit 61fa936

File tree

13 files changed

+37
-28
lines changed

13 files changed

+37
-28
lines changed

INSTALL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ progress::
4747

4848
matplotlib requires numpy version 1.1 or later. Although it is not a
4949
requirement to use matplotlib, we strongly encourage you to install
50-
`ipython <http://ipython.scipy.org/dist>`_, which is an interactive
50+
`ipython <http://ipython.org>`_, which is an interactive
5151
shell for python that is matplotlib-aware.
5252

5353
Next, we need to get matplotlib installed. We provide prebuilt

doc/_templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h1>intro</h1>
99
publication quality figures in a variety of hardcopy formats and
1010
interactive environments across platforms. matplotlib can be used
1111
in python scripts, the python and <a
12-
href="http://ipython.scipy.org">ipython</a> shell (ala
12+
href="http://ipython.org">ipython</a> shell (ala
1313
MATLAB<sup>&reg;<a name="matlab" href="#ftn.matlab">*</a></sup>
1414
or
1515
Mathematica<sup>&reg;<a name="mathematica"

doc/_templates/indexsidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ <h3>Videos</h3>
4141
<h3>Toolkits</h3>
4242

4343
<p>There are several matplotlib add-on <a href="{{
44-
pathto('users/toolkits') }}">toolkits</a>, including the projection
44+
pathto('mpl_toolkits/index') }}">toolkits</a>, including the projection
4545
and mapping toolkit
46-
<a href="http://matplotlib.sf.net/basemap/doc/html">basemap</a>, 3d plotting with <a href="{{
46+
<a href="http://matplotlib.github.com/basemap">basemap</a>, 3d plotting with <a href="{{
4747
pathto('mpl_toolkits/mplot3d/index') }}">mplot3d</a>, axes and axis helpers in <a href="{{
4848
pathto('mpl_toolkits/axes_grid/index') }}">axes_grid</a> and more.
4949
</p>

doc/devel/gitwash/known_projects.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
.. _`nipy mailing list`: http://mail.scipy.org/mailman/listinfo/nipy-devel
2222

2323
.. ipython
24-
.. _ipython: http://ipython.scipy.org
24+
.. _ipython: http://ipython.org
2525
.. _`ipython github`: http://github.com/ipython/ipython
2626
.. _`ipython mailing list`: http://mail.scipy.org/mailman/listinfo/IPython-dev
2727

doc/mpl_toolkits/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Basemap
1919
=======
2020

2121
Plots data on map projections, with continental and political
22-
boundaries, see `basemap <http://matplotlib.sf.net/basemap/doc/html>`_
22+
boundaries, see `basemap <http://matplotlib.github.com/basemap>`_
2323
docs.
2424

2525
.. _toolkit_gtk:

doc/users/artists.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ In this example, ``ax`` is the ``Axes`` instance created by the
6464
subclass of ``Axes``) and when you call ``ax.plot``, it creates a
6565
``Line2D`` instance and adds it to the :attr:`Axes.lines
6666
<matplotlib.axes.Axes.lines>` list. In the interactive `ipython
67-
<http://ipython.scipy.org/>`_ session below, you can see that the
67+
<http://ipython.org/>`_ session below, you can see that the
6868
``Axes.lines`` list is length one and contains the same line that was
6969
returned by the ``line, = ax.plot...`` call:
7070

doc/users/credits.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Fernando Perez
9494
has provided numerous bug reports and patches for cleaning up
9595
backend imports and expanding pylab functionality, and provided
9696
matplotlib support in the pylab mode for `ipython
97-
<http://ipython.scipy.org>`_. He also provided the
97+
<http://ipython.org>`_. He also provided the
9898
:func:`~matplotlib.pyplot.matshow` command, and wrote TConfig, which
9999
is the basis for the experimental traited mpl configuration.
100100

@@ -149,7 +149,7 @@ Nicolas Young
149149
sampled images.
150150

151151
The `brainvisa <http://brainvisa.info>`_ Orsay team and Fernando Perez
152-
added Qt support to `ipython <http://ipython.scipy.org>`_ in pylab mode.
152+
added Qt support to `ipython <http://ipython.org>`_ in pylab mode.
153153

154154

155155
Charlie Moad

doc/users/shell.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ python shell.
2323
Ipython to the rescue
2424
=====================
2525

26-
Fortunately, `ipython <http://ipython.scipy.org/dist>`_, an enhanced
26+
Fortunately, `ipython <http://ipython.org/>`_, an enhanced
2727
interactive python shell, has figured out all of these tricks, and is
2828
matplotlib aware, so when you start ipython in the *pylab* mode.
2929

lib/matplotlib/backends/backend_svg.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def _get_hatch(self, gc, rgbFace):
331331
else:
332332
_, oid = oid
333333
return oid
334-
334+
335335
def _write_hatches(self):
336336
if not len(self._hatchd):
337337
return
@@ -445,7 +445,7 @@ def _write_clips(self):
445445
writer.element('rect', x=str(x), y=str(y), width=str(w), height=str(h))
446446
writer.end('clipPath')
447447
writer.end('defs')
448-
448+
449449
def _write_svgfonts(self):
450450
if not rcParams['svg.fonttype'] == 'svgfont':
451451
return
@@ -926,7 +926,8 @@ def _draw_text_as_text(self, gc, x, y, s, prop, angle, ismath):
926926
fontstyle = prop.get_style()
927927

928928
attrib = {}
929-
style['font-size'] = str(fontsize)
929+
# Must add "px" to workaround a Firefox bug
930+
style['font-size'] = str(fontsize) + 'px'
930931
style['font-family'] = str(fontfamily)
931932
style['font-style'] = prop.get_style().lower()
932933
attrib['style'] = generate_css(style)
@@ -967,7 +968,8 @@ def _draw_text_as_text(self, gc, x, y, s, prop, angle, ismath):
967968
spans = {}
968969
for font, fontsize, thetext, new_x, new_y, metrics in svg_glyphs:
969970
style = generate_css({
970-
'font-size': str(fontsize),
971+
# Must add "px" to work around a Firefox bug
972+
'font-size': str(fontsize) + 'px',
971973
'font-family': font.family_name,
972974
'font-style': font.style_name.lower()})
973975
if thetext == 32:

lib/matplotlib/figure.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -827,13 +827,13 @@ def draw(self, renderer):
827827
dsu = []
828828

829829
for a in self.patches:
830-
dsu.append( (a.get_zorder(), a.draw, [renderer]))
830+
dsu.append( (a.get_zorder(), a, a.draw, [renderer]))
831831

832832
for a in self.lines:
833-
dsu.append( (a.get_zorder(), a.draw, [renderer]))
833+
dsu.append( (a.get_zorder(), a, a.draw, [renderer]))
834834

835835
for a in self.artists:
836-
dsu.append( (a.get_zorder(), a.draw, [renderer]))
836+
dsu.append( (a.get_zorder(), a, a.draw, [renderer]))
837837

838838
# override the renderer default if self.suppressComposite
839839
# is not None
@@ -844,7 +844,7 @@ def draw(self, renderer):
844844
if len(self.images)<=1 or not_composite or \
845845
not allequal([im.origin for im in self.images]):
846846
for a in self.images:
847-
dsu.append( (a.get_zorder(), a.draw, [renderer]))
847+
dsu.append( (a.get_zorder(), a, a.draw, [renderer]))
848848
else:
849849
# make a composite image blending alpha
850850
# list of (_image.Image, ox, oy)
@@ -866,21 +866,22 @@ def draw_composite():
866866
renderer.draw_image(gc, l, b, im)
867867
gc.restore()
868868

869-
dsu.append((self.images[0].get_zorder(), draw_composite, []))
869+
dsu.append((self.images[0].get_zorder(), self.images[0], draw_composite, []))
870870

871871
# render the axes
872872
for a in self.axes:
873-
dsu.append( (a.get_zorder(), a.draw, [renderer]))
873+
dsu.append( (a.get_zorder(), a, a.draw, [renderer]))
874874

875875
# render the figure text
876876
for a in self.texts:
877-
dsu.append( (a.get_zorder(), a.draw, [renderer]))
877+
dsu.append( (a.get_zorder(), a, a.draw, [renderer]))
878878

879879
for a in self.legends:
880-
dsu.append( (a.get_zorder(), a.draw, [renderer]))
880+
dsu.append( (a.get_zorder(), a, a.draw, [renderer]))
881881

882+
dsu = [row for row in dsu if not row[1].get_animated()]
882883
dsu.sort(key=itemgetter(0))
883-
for zorder, func, args in dsu:
884+
for zorder, a, func, args in dsu:
884885
func(*args)
885886

886887
renderer.close_group('figure')

lib/matplotlib/tri/triangulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def get_from_args_and_kwargs(*args, **kwargs):
171171
@property
172172
def neighbors(self):
173173
if self._neighbors is None:
174-
self._neighbors = self._get_cpp_triangulation().get_neighbors()
174+
self._neighbors = self.get_cpp_triangulation().get_neighbors()
175175
return self._neighbors
176176

177177
def set_mask(self, mask):

src/_tkagg.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ extern "C"
3434
#endif
3535
}
3636

37+
#if defined(_MSC_VER)
38+
# define SIZE_T_FORMAT "%Iu"
39+
#else
40+
# define SIZE_T_FORMAT "%zu"
41+
#endif
42+
3743

3844

3945
typedef struct
@@ -53,7 +59,7 @@ PyAggImagePhoto(ClientData clientdata, Tcl_Interp* interp,
5359
// vars for blitting
5460
PyObject* bboxo;
5561

56-
unsigned long aggl, bboxl;
62+
size_t aggl, bboxl;
5763
bool has_bbox;
5864
agg::int8u *destbuffer;
5965
double l, b, r, t;
@@ -83,7 +89,7 @@ PyAggImagePhoto(ClientData clientdata, Tcl_Interp* interp,
8389
return TCL_ERROR;
8490
}
8591
/* get array (or object that can be converted to array) pointer */
86-
if (sscanf(argv[2], "%lu", &aggl) != 1)
92+
if (sscanf(argv[2], SIZE_T_FORMAT, &aggl) != 1)
8793
{
8894
Tcl_AppendResult(interp, "error casting pointer", (char *) NULL);
8995
return TCL_ERROR;
@@ -109,7 +115,7 @@ PyAggImagePhoto(ClientData clientdata, Tcl_Interp* interp,
109115
}
110116

111117
/* check for bbox/blitting */
112-
if (sscanf(argv[4], "%lu", &bboxl) != 1)
118+
if (sscanf(argv[4], SIZE_T_FORMAT, &bboxl) != 1)
113119
{
114120
Tcl_AppendResult(interp, "error casting pointer", (char *) NULL);
115121
return TCL_ERROR;

ttconv/pprdrv_tt2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
*/
3434

3535
#include "global_defines.h"
36-
#include <cmath>
3736
#include <cstdlib>
37+
#include <cmath>
3838
#include <cstring>
3939
#include <memory>
4040
#include "pprdrv.h"

0 commit comments

Comments
 (0)