8000 Merge remote-tracking branch 'matplotlib/v2.1.0-doc' into v2.1.x · matplotlib/matplotlib@58883c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58883c5

Browse files
committed
Merge remote-tracking branch 'matplotlib/v2.1.0-doc' into v2.1.x
2 parents b03e0b2 + c13aeda commit 58883c5

File tree

19 files changed

+58
-39
lines changed

19 files changed

+58
-39
lines changed

doc/_templates/autofunctions.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
{{ fullname | escape | underline }}
33

44

5-
.. currentmodule:: {{ fullname }}
5+
.. automodule:: {{ fullname }}
6+
:no-members:
67

78
{% block functions %}
89
{% if functions %}
910

1011
Functions
1112
---------
1213

13-
.. autosummary::
14+
.. autosummary::
1415
:template: autosummary.rst
1516
:toctree:
1617
{% for item in functions %}{% if item not in ['plotting', 'colormaps'] %}

doc/_templates/citing.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<h1>Citing Matplotlib</h1>
66
<p>
77
If Matplotlib contributes to a project that leads to a scientific publication,
8-
please acknowledge this fact by citing the project. You can use this
9-
BibTeX entry:
8+
please acknowledge this fact by citing
9+
<a href ='http://doi.org/10.1109/MCSE.2007.55'>Hunter et al (2007)</a> using this ready-made BibTeX entry:
1010
</p>
1111
<pre>
1212
@Article{Hunter:2007,

doc/users/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ User's Guide
1414

1515
intro.rst
1616
installing.rst
17+
../tutorials/index.rst
1718
interactive.rst
1819
whats_new.rst
1920
github_stats.rst

examples/animation/movie_demo_sgskip.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from __future__ import print_function
99

10+
import os
1011
import subprocess
1112
import matplotlib.pyplot as plt
1213
import numpy as np

examples/event_handling/close_event.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Close Event
44
===========
55
6+
Example to show connecting events that occur when the figure closes.
67
"""
78
from __future__ import print_function
89
import matplotlib.pyplot as plt

examples/event_handling/data_browser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Data Browser
44
============
55
6+
Connecting data between multiple canvases.
7+
8+
This example covers how to interact data with multiple canvases. This
9+
let's you select and highlight a point on one axis, and generating the
10+
data of that point on the other axis.
611
"""
712
import numpy as np
813

examples/event_handling/looking_glass.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Looking Glass
44
=============
55
6+
Example using mouse events to simulate a looking glass for inspecting data.
67
"""
78
import numpy as np
89
import matplotlib.pyplot as plt

examples/event_handling/path_editor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Path Editor
44
===========
55
6+
Sharing events across GUIs.
7+
8+
This example demonstrates a cross-GUI application using Matplotlib event
9+
handling to interact with and modify objects on the canvas.
610
"""
711
import numpy as np
812
import matplotlib.path as mpath

lib/matplotlib/legend_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
legend_handler(legend, orig_handle, fontsize, handlebox)
1111
1212
Where *legend* is the legend itself, *orig_handle* is the original
13-
plot, *fontsize* is the fontsize in pixles, and *handlebox* is a
13+
plot, *fontsize* is the fontsize in pixels, and *handlebox* is a
1414
OffsetBox instance. Within the call, you should create relevant
1515
artists (using relevant properties from the *legend* and/or
1616
*orig_handle*) and add them into the handlebox. The artists needs to

lib/matplotlib/patches.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ def get_path(self):
705705
def _update_patch_transform(self):
706706
"""NOTE: This cannot be called until after this has been added
707707
to an Axes, otherwise unit conversion will fail. This
708-
maxes it very important to call the accessor method and
708+
makes it very important to call the accessor method and
709709
not directly access the transformation member variable.
710710
"""
711711
x = self.convert_xunits(self._x)
@@ -1465,7 +1465,7 @@ def __init__(self, xy, width, height, angle=0.0, **kwargs):
14651465
def _recompute_transform(self):
14661466
"""NOTE: This cannot be called until after this has been added
14671467
to an Axes, otherwise unit conversion will fail. This
1468-
maxes it very important to call the accessor method and
1468+
makes it very important to call the accessor method and
14691469
not directly access the transformation member variable.
14701470
"""
14711471
center = (self.convert_xunits(self.center[0]),

lib/matplotlib/spines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def set_patch_line(self):
136136
def _recompute_transform(self):
137137
"""NOTE: This cannot be called until after this has been added
138138
to an Axes, otherwise unit conversion will fail. This
139-
maxes it very important to call the accessor method and
139+
makes it very important to call the accessor method and
140140
not directly access the transformation member variable.
141141
"""
142142
assert self._patch_type in ('arc', 'circle')

tutorials/advanced/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _tutorials-advanced:
22

33
Advanced
4-
========
4+
--------
55

66
These tutorials cover advanced topics for experienced Matplotlib
77
users and developers.

tutorials/advanced/transforms_tutorial.py

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,42 @@
33
Transformations Tutorial
44
========================
55
6-
Transforming visuals in Matplotlib.
7-
8-
Like any graphics packages, matplotlib is built on top of a
6+
Like any graphics packages, Matplotlib is built on top of a
97
transformation framework to easily move between coordinate systems,
108
the userland `data` coordinate system, the `axes` coordinate system,
119
the `figure` coordinate system, and the `display` coordinate system.
1210
In 95% of your plotting, you won't need to think about this, as it
1311
happens under the hood, but as you push the limits of custom figure
1412
generation, it helps to have an understanding of these objects so you
15-
can reuse the existing transformations matplotlib makes available to
13+
can reuse the existing transformations Matplotlib makes available to
1614
you, or create your own (see :mod:`matplotlib.transforms`). The table
17-
below summarizes the existing coordinate systems, the transformation
15+
below summarizes the some useful coordinate systems, the transformation
1816
object you should use to work in that coordinate system, and the
1917
description of that system. In the `Transformation Object` column,
2018
``ax`` is a :class:`~matplotlib.axes.Axes` instance, and ``fig`` is a
2119
:class:`~matplotlib.figure.Figure` instance.
2220
23-
========== ===================== ====================================================================================
24-
Coordinate Transformation Object Description
25-
========== ===================== ====================================================================================
26-
`data` ``ax.transData`` The userland data coordinate system, controlled by the xlim and ylim
27-
`axes` ``ax.transAxes`` The coordinate system of the :class:`~matplotlib.axes.Axes`; (0, 0) is
28-
bottom left of the axes, and (1, 1) is top right of the axes.
29-
`figure` ``fig.transFigure`` The coordinate system of the :class:`~matplotlib.figure.Figure`; (0, 0)
30-
is bottom left of the figure, and (1, 1) is top right of the figure.
31-
`display` `None` This is the pixel coordinate system of the display; (0, 0) is the bottom
32-
left of the display, and (width, height) is the top right of the display in pixels.
33-
Alternatively, the identity transform
34-
(:class:`matplotlib.transforms.IdentityTransform()`) may be used instead of None.
35-
========== ===================== ====================================================================================
36-
21+
=========== ============================= =====================================
22+
Coordinates Transformation object Description
23+
=========== ============================= =====================================
24+
"data" ``ax.transData```` The coordinate system for the data,
25+
controlled by xlim and ylim.
26+
"axes" ``ax.transAxes`` The coordinate system of the
27+
`~.Axes`; (0, 0) is bottom left of
28+
the axes, and (1, 1) is top right of
29+
the axes.
30+
"figure" ``fig.transFigure`` The coordinate system of the
31+
`~.Figure`; (0, 0) is bottom left of
32+
the figure, and (1, 1) is top right
33+
of the figure.
34+
"display" ``None``, or The pixel coordinate system of the
35+
``IdentityTransform()`` display; (0, 0) is bottom left of the
36+
display, and (width, height) is top
37+
right of the display in pixels.
38+
"xaxis", ``ax.get_xaxis_transform()``, Blended coordinate systems; use data
39+
"yaxis" ``ax.get_yaxis_transform()`` coordinates on one of the axis and
40+
axes coordinates on the other.
41+
=========== ============================= =====================================
3742
3843
All of the transformation objects in the table above take inputs in
3944
their coordinate system, and transform the input to the `display`
@@ -52,7 +57,7 @@
5257
================
5358
5459
Let's start with the most commonly used coordinate, the `data`
55-
coordinate system. Whenever you add data to the axes, matplotlib
60+
coordinate system. Whenever you add data to the axes, Matplotlib
5661
updates the datalimits, most commonly updated with the
5762
:meth:`~matplotlib.axes.Axes.set_xlim` and
5863
:meth:`~matplotlib.axes.Axes.set_ylim` methods. For example, in the
@@ -431,7 +436,7 @@
431436
# The final piece is the ``self.transScale`` attribute, which is
432437
# responsible for the optional non-linear scaling of the data, e.g., for
433438
# logarithmic axes. When an Axes is initially setup, this is just set to
434-
# the identity transform, since the basic matplotlib axes has linear
439+
# the identity transform, since the basic Matplotlib axes has linear
435440
# scale, but when you call a logarithmic scaling function like
436441
# :meth:`~matplotlib.axes.Axes.semilogx` or explicitly set the scale to
437442
# logarithmic with :meth:`~matplotlib.axes.Axes.set_xscale`, then the
@@ -455,7 +460,7 @@
455460
# data, to a separable Cartesian coordinate system. There are several
456461
# projection examples in the ``matplotlib.projections`` package, and the
457462
# best way to learn more is to open the source for those packages and
458-
# see how to make your own, since matplotlib supports extensible axes
463+
# see how to make your own, since Matplotlib supports extensible axes
459464
# and projections. Michael Droettboom has provided a nice tutorial
460-
# example of creating a hammer projection axes; see
465+
# example of creating a Hammer projection axes; see
461466
# :ref:`sphx_glr_gallery_api_custom_projection_example.py`.

tutorials/colors/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _tutorials-colors:
22

33
Colors
4-
======
4+
------
55

66
Matplotlib has support for visualizing information with a wide array
77
of colors and colormaps. These tutorials cover the basics of how

tutorials/intermediate/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _tutorials-intermediate:
22

33
Intermediate
4-
============
4+
------------
55

66
These tutorials cover some of the more complicated classes and functions
77
in Matplotlib. They can be useful for particular custom and complex

tutorials/introductory/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _tutorials-introductory:
22

33
Introductory
4-
============
4+
-------------
55

66
These tutorials cover the basics of creating visualizations with
77
Matplotlib, as well as some best-practices in using the package

tutorials/introductory/usage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
# ------------------------------
8585
#
8686
# This is what you think of as 'a plot', it is the region of the image
87-
# with the data space (marked as the inner blue box). A given figure
87+
# with the data space. A given figure
8888
# can contain many Axes, but a given :class:`~matplotlib.axes.Axes`
8989
# object can only be in one :class:`~matplotlib.figure.Figure`. The
9090
# Axes contains two (or three in the case of 3D)
@@ -104,7 +104,7 @@
104104
# :class:`~matplotlib.axis.Axis`
105105
# ------------------------------
106106
#
107-
# These are the number-line-like objects (circled in green). They take
107+
# These are the number-line-like objects. They take
108108
# care of setting the graph limits and generating the ticks (the marks
109109
# on the axis) and ticklabels (strings labeling the ticks). The
110110
# location of the ticks is determined by a

tutorials/text/README.txt

Lines changed: 1 addition 341A & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _tutorials-text:
22

33
Text
4-
====
4+
----
55

66
matplotlib has extensive text support, including support for
77
mathematical expressions, truetype support for raster and

tutorials/toolkits/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _tutorials-toolkits:
22

33
Toolkits
4-
========
4+
--------
55

66
These tutorials cover toolkits designed to extend the functionality
77
of Matplotlib in order to accomplish specific goals.

0 commit comments

Comments
 (0)
0