Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3156405

Browse files
committed
Merge branch 'v1.2.x'
Conflicts: doc/users/whats_new.rst lib/matplotlib/__init__.py
2 parents 200a91a + 067e992 commit 3156405

5 files changed

Lines changed: 21 additions & 9 deletions

File tree

doc/_templates/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
}
3636
</script>
3737

38-
<!-- The "Fork me on github" ribbon -->
39-
<a href="https://github.com/matplotlib/matplotlib"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub"></a>
4038

4139
<h1>John Hunter (1968-2012)</h1>
4240

doc/_templates/layout.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
<a href="{{ pathto('index') }}"><img src="{{
3737
pathto("_static/logo2.png", 1) }}" border="0" alt="matplotlib"/></a>
3838
</div>
39+
40+
<!-- The "Fork me on github" ribbon -->
41+
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" usemap="#ribbonmap"/>
42+
<map name="ribbonmap">
43+
<area shape="poly" coords="20,2,148,-1,148,135" href="https://github.com/matplotlib/matplotlib" alt="Fork me on GitHub" />
44+
</map>
45+
3946
{{ super() }}
4047
{% endblock %}
4148

doc/faq/usage_faq.rst

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -253,17 +253,21 @@ a file:
253253
============ ================================================================
254254
Backend Description
255255
============ ================================================================
256-
GTKAgg Agg rendering to a :term:`GTK` canvas (requires PyGTK_)
257-
GTK GDK rendering to a :term:`GTK` canvas (not recommended)
256+
GTKAgg Agg rendering to a :term:`GTK` 2.x canvas (requires PyGTK_)
257+
GTK3Agg Agg rendering to a :term:`GTK` 3.x canvas (requires PyGObject_)
258+
GTK GDK rendering to a :term:`GTK` 2.x canvas (not recommended)
258259
(requires PyGTK_)
259-
GTKCairo Cairo rendering to a :term:`GTK` Canvas (requires PyGTK_)
260+
GTKCairo Cairo rendering to a :term:`GTK` 2.x canvas (requires PyGTK_
261+
and pycairo_)
262+
GTK3Cairo Cairo rendering to a :term:`GTK` 3.x canvas (requires PyGObject_
263+
and pycairo_)
260264
WXAgg Agg rendering to to a :term:`wxWidgets` canvas
261265
(requires wxPython_)
262266
WX Native :term:`wxWidgets` drawing to a :term:`wxWidgets` Canvas
263267
(not recommended) (requires wxPython_)
264268
TkAgg Agg rendering to a :term:`Tk` canvas (requires TkInter_)
265269
QtAgg Agg rendering to a :term:`Qt` canvas (requires PyQt_)
266-
(not recommended; use Qt4Agg)
270+
(deprecated; use Qt4Agg)
267271
Qt4Agg Agg rendering to a :term:`Qt4` canvas (requires PyQt4_)
268272
FLTKAgg Agg rendering to a :term:`FLTK` canvas (requires pyFLTK_)
269273
(not widely used; consider TKAgg, GTKAgg, WXAgg, or
@@ -280,6 +284,8 @@ macosx Cocoa rendering in OSX windows
280284
.. _`Cairo graphics`: http://en.wikipedia.org/wiki/Cairo_(graphics)
281285
.. _`Gimp Drawing Kit`: http://en.wikipedia.org/wiki/GDK
282286
.. _PyGTK: http://www.pygtk.org
287+
.. _PyGObject: https://live.gnome.org/PyGObject
288+
.. _pycairo: http://www.cairographics.org/pycairo/
283289
.. _wxPython: http://www.wxpython.org/
284290
.. _TkInter: http://wiki.python.org/moin/TkInter
285291
.. _PyQt: http://www.riverbankcomputing.co.uk/software/pyqt/intro
@@ -425,6 +431,3 @@ generate one or more figures and display them before ending
425431
or generating a new set of figures. In that case, use
426432
:func:`~matplotlib.pyplot.show` to display the figure(s) and
427433
to block execution until you have manually destroyed them.
428-
429-
430-

doc/users/whats_new.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ revision, see the :ref:`github-stats`.
1515
versions 2.4 to 2.7. matplotlib 1.2 and later require
1616
versions 2.6, 2.7, and 3.1 and higher.
1717

18+
.. contents:: Table of Contents
19+
1820
.. _whats-new-1-3:
1921

2022
new in matplotlib-1.3

src/_gtkagg.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/* -*- mode: c++; c-basic-offset: 4 -*- */
23

34
#include <pygobject.h>
@@ -121,6 +122,7 @@ class _gtkagg_module : public Py::ExtensionModule<_gtkagg_module>
121122
destbuffer,
122123
deststride);
123124

125+
gdk_gc_destroy(gc);
124126
if (needfree)
125127
{
126128
delete [] destbuffer;

0 commit comments

Comments
 (0)