Skip to content

Commit 4d1d259

Browse files
committed
Copy-edit various examples.
Mostly removing "in Matplotlib" (where it is clear that it's a Matplotlib example illustrating how to do stuff in Matplotlib), and removing redundant subtitles.
1 parent bff9593 commit 4d1d259

File tree

13 files changed

+33
-46
lines changed

13 files changed

+33
-46
lines changed

galleries/examples/color/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
Color
44
=====
55

6-
For more in-depth information about the colormaps available in matplotlib
6+
For more in-depth information about the colormaps available in Matplotlib
77
as well as a description of their properties,
88
see the :ref:`colormaps tutorial <tutorials-colors>`.

galleries/examples/color/named_colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
List of named colors
44
====================
55
6-
This plots a list of the named colors supported in matplotlib.
6+
This plots a list of the named colors supported by Matplotlib.
77
For more information on colors in matplotlib see
88
99
* the :ref:`colors_def` tutorial;

galleries/examples/images_contours_and_fields/image_demo.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
"""
2-
==========
3-
Image demo
4-
==========
5-
6-
Many ways to plot images in Matplotlib.
2+
========================
3+
Many ways to plot images
4+
========================
75
86
The most common way to plot images in Matplotlib is with
97
`~.axes.Axes.imshow`. The following examples demonstrate much of the

galleries/examples/images_contours_and_fields/pcolor_demo.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
"""
2-
===========
3-
Pcolor demo
4-
===========
2+
=============
3+
pcolor images
4+
=============
55
6-
Generating images with `~.axes.Axes.pcolor`.
7-
8-
Pcolor allows you to generate 2D image-style plots. Below we will show how
9-
to do so in Matplotlib.
6+
`~.Axes.pcolor` generates 2D image-style plots, as illustrated below.
107
"""
8+
119
import matplotlib.pyplot as plt
1210
import numpy as np
1311

galleries/examples/text_labels_and_annotations/accented_text.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
r"""
2-
=================================
3-
Using accented text in Matplotlib
4-
=================================
2+
=============
3+
Accented text
4+
=============
55
66
Matplotlib supports accented characters via TeX mathtext or Unicode.
77

galleries/examples/text_labels_and_annotations/annotation_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Annotating Plots
44
================
55
6-
The following examples show how it is possible to annotate plots in Matplotlib.
6+
The following examples show ways to annotate plots in Matplotlib.
77
This includes highlighting specific points of interest and using various
88
visual tools to call attention to this point. For a more complete and in-depth
99
description of the annotation and text tools in Matplotlib, see the

galleries/examples/text_labels_and_annotations/font_file.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
r"""
2-
===================================
3-
Using a ttf font file in Matplotlib
4-
===================================
2+
====================
3+
Using ttf font files
4+
====================
55
66
Although it is usually not a good idea to explicitly point to a single ttf file
77
for a font instance, you can do so by passing a `pathlib.Path` instance as the

galleries/examples/text_labels_and_annotations/legend_demo.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
Legend Demo
44
===========
55
6-
Plotting legends in Matplotlib.
7-
86
There are many ways to create and customize legends in Matplotlib. Below
97
we'll show a few examples for how to do so.
108

galleries/users_explain/axes/legend_guide.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@
77
Legend guide
88
============
99
10-
Generating legends flexibly in Matplotlib.
11-
1210
.. currentmodule:: matplotlib.pyplot
1311
14-
This legend guide is an extension of the documentation available at
15-
:func:`~matplotlib.pyplot.legend` - please ensure you are familiar with
16-
contents of that documentation before proceeding with this guide.
12+
This legend guide extends the `~.Axes.legend` docstring -
13+
please read it first before proceeding with this guide.
1714
1815
This guide makes use of some common terms, which are documented here for
1916
clarity:
@@ -62,7 +59,7 @@
6259
line_down, = ax.plot([3, 2, 1], label='Line 1')
6360
ax.legend(handles=[line_up, line_down])
6461
65-
In some cases, it is not possible to set the label of the handle, so it is
62+
Rarely, it is not possible to set the label of the handle, so it is
6663
possible to pass through the list of labels to :func:`legend`::
6764
6865
fig, ax = plt.subplots()

galleries/users_explain/axes/tight_layout_guide.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@
2121
Simple Example
2222
==============
2323
24-
In matplotlib, the location of axes (including subplots) are specified in
24+
In Matplotlib, the location of Axes (including subplots) are specified in
2525
normalized figure coordinates. It can happen that your axis labels or
2626
titles (or sometimes even ticklabels) go outside the figure area, and are thus
2727
clipped.
28-
2928
"""
3029

3130
# sphinx_gallery_thumbnail_number = 7

0 commit comments

Comments
 (0)