Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit af9f872

Browse filesBrowse files
committed
DOC: Standardize example titles - part 2
Follow up to #28544. As there: Following recommendations from #28527, this improves example titles. Take this as an incremental improvement. I've changed what I saw at a glance when going through the examples once. Certainly, one could do further improvements, but that can be done in follow-ups.
1 parent e0e49ef commit af9f872
Copy full SHA for af9f872

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner

55 files changed

+164
-163
lines changed

‎galleries/examples/animation/pause_resume.py

Copy file name to clipboardExpand all lines: galleries/examples/animation/pause_resume.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=================================
3-
Pausing and resuming an animation
4-
=================================
2+
=============================
3+
Pause and resume an animation
4+
=============================
55
66
This example showcases:
77

‎galleries/examples/axes_grid1/demo_axes_rgb.py

Copy file name to clipboardExpand all lines: galleries/examples/axes_grid1/demo_axes_rgb.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
==================================
3-
Showing RGB channels using RGBAxes
4-
==================================
2+
===============================
3+
Show RGB channels using RGBAxes
4+
===============================
55
66
`~.axes_grid1.axes_rgb.RGBAxes` creates a layout of 4 Axes for displaying RGB
77
channels: one large Axes for the RGB image and 3 smaller Axes for the R, G, B

‎galleries/examples/axes_grid1/demo_colorbar_with_inset_locator.py

Copy file name to clipboardExpand all lines: galleries/examples/axes_grid1/demo_colorbar_with_inset_locator.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
22
.. _demo-colorbar-with-inset-locator:
33
4-
==============================================================
5-
Controlling the position and size of colorbars with Inset Axes
6-
==============================================================
4+
==========================================================
5+
Control the position and size of colorbars with Inset Axes
6+
==========================================================
77
88
This example shows how to control the position, height, and width of colorbars
99
using `~mpl_toolkits.axes_grid1.inset_locator.inset_axes`.

‎galleries/examples/axes_grid1/demo_imagegrid_aspect.py

Copy file name to clipboardExpand all lines: galleries/examples/axes_grid1/demo_imagegrid_aspect.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
=========================================
3-
Setting a fixed aspect on ImageGrid cells
3+
ImageGrid cells with a fixed aspect ratio
44
=========================================
55
"""
66

‎galleries/examples/color/custom_cmap.py

Copy file name to clipboardExpand all lines: galleries/examples/color/custom_cmap.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=========================================
3-
Creating a colormap from a list of colors
4-
=========================================
2+
=======================================
3+
Create a colormap from a list of colors
4+
=======================================
55
66
For more detail on creating and manipulating colormaps see
77
:ref:`colormap-manipulation`.

‎galleries/examples/images_contours_and_fields/image_annotated_heatmap.py

Copy file name to clipboardExpand all lines: galleries/examples/images_contours_and_fields/image_annotated_heatmap.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
===========================
3-
Creating annotated heatmaps
4-
===========================
2+
=================
3+
Annotated heatmap
4+
=================
55
66
It is often desirable to show data which depends on two independent
77
variables as a color coded image plot. This is often referred to as a

‎galleries/examples/lines_bars_and_markers/fill_between_alpha.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/fill_between_alpha.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
==============================
3-
Fill Between with transparency
4-
==============================
2+
==================================
3+
``fill_between`` with transparency
4+
==================================
55
66
The `~matplotlib.axes.Axes.fill_between` function generates a shaded
77
region between a min and max boundary that is useful for illustrating ranges.

‎galleries/examples/lines_bars_and_markers/fill_between_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/fill_between_demo.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
==============================
3-
Filling the area between lines
4-
==============================
2+
===========================
3+
Fill the area between lines
4+
===========================
55
66
This example shows how to use `~.axes.Axes.fill_between` to color the area
77
between two lines.

‎galleries/examples/lines_bars_and_markers/fill_betweenx_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/fill_betweenx_demo.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
==================
3-
Fill Betweenx Demo
4-
==================
2+
=================
3+
``fill_betweenx``
4+
=================
55
66
Using `~.Axes.fill_betweenx` to color along the horizontal direction between
77
two curves.

‎galleries/examples/lines_bars_and_markers/line_demo_dash_control.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/line_demo_dash_control.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
==============================
3-
Customizing dashed line styles
4-
==============================
2+
===============================
3+
Dashed line style configuration
4+
===============================
55
66
The dashing of a line is controlled via a dash sequence. It can be modified
77
using `.Line2D.set_dashes`.

‎galleries/examples/lines_bars_and_markers/scatter_masked.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/scatter_masked.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
==========================
3-
Scatter with masked values
4-
==========================
2+
===============================
3+
Scatter plot with masked values
4+
===============================
55
66
Mask some data points and add a line demarking
77
masked regions.

‎galleries/examples/lines_bars_and_markers/scatter_with_legend.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/scatter_with_legend.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
===========================
3-
Scatter plots with a legend
4-
===========================
2+
==========================
3+
Scatter plot with a legend
4+
==========================
55
66
To create a scatter plot with a legend one may use a loop and create one
77
`~.Axes.scatter` plot per item to appear in the legend and set the ``label``

‎galleries/examples/lines_bars_and_markers/timeline.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/timeline.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
===============================================
3-
Creating a timeline with lines, dates, and text
4-
===============================================
2+
====================================
3+
Timeline with lines, dates, and text
4+
====================================
55
66
How to create a simple timeline using Matplotlib release dates.
77

‎galleries/examples/misc/bbox_intersect.py

Copy file name to clipboardExpand all lines: galleries/examples/misc/bbox_intersect.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
===========================================
3-
Changing colors of lines intersecting a box
4-
===========================================
2+
=========================================
3+
Change colors of lines intersecting a box
4+
=========================================
55
66
The lines intersecting the rectangle are colored in red, while the others
77
are left as blue lines. This example showcases the `.intersects_bbox` function.

‎galleries/examples/misc/demo_ribbon_box.py

Copy file name to clipboardExpand all lines: galleries/examples/misc/demo_ribbon_box.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
==========
3-
Ribbon Box
3+
Ribbon box
44
==========
55
66
"""

‎galleries/examples/misc/fig_x.py

Copy file name to clipboardExpand all lines: galleries/examples/misc/fig_x.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=======================
3-
Adding lines to figures
4-
=======================
2+
=====================
3+
Add lines to a figure
4+
=====================
55
66
Adding lines to a figure without any Axes.
77

‎galleries/examples/misc/fill_spiral.py

Copy file name to clipboardExpand all lines: galleries/examples/misc/fill_spiral.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
===========
3-
Fill Spiral
3+
Fill spiral
44
===========
55
66
"""

‎galleries/examples/pie_and_polar_charts/pie_and_donut_labels.py

Copy file name to clipboardExpand all lines: galleries/examples/pie_and_polar_charts/pie_and_donut_labels.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
==========================
3-
Labeling a pie and a donut
4-
==========================
2+
=============================
3+
A pie and a donut with labels
4+
=============================
55
66
Welcome to the Matplotlib bakery. We will create a pie and a donut
77
chart through the `pie method <matplotlib.axes.Axes.pie>` and

‎galleries/examples/shapes_and_collections/line_collection.py

Copy file name to clipboardExpand all lines: galleries/examples/shapes_and_collections/line_collection.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=============================================
3-
Plotting multiple lines with a LineCollection
4-
=============================================
2+
==========================================
3+
Plot multiple lines using a LineCollection
4+
==========================================
55
66
Matplotlib can efficiently draw multiple lines at once using a `~.LineCollection`.
77
"""

‎galleries/examples/statistics/errorbars_and_boxes.py

Copy file name to clipboardExpand all lines: galleries/examples/statistics/errorbars_and_boxes.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
====================================================
3-
Creating boxes from error bars using PatchCollection
4-
====================================================
2+
==================================================
3+
Create boxes from error bars using PatchCollection
4+
==================================================
55
66
In this example, we snazz up a pretty standard error bar plot by adding
77
a rectangle patch defined by the limits of the bars in both the x- and

‎galleries/examples/statistics/histogram_cumulative.py

Copy file name to clipboardExpand all lines: galleries/examples/statistics/histogram_cumulative.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=================================
3-
Plotting cumulative distributions
4-
=================================
2+
========================
3+
Cumulative distributions
4+
========================
55
66
This example shows how to plot the empirical cumulative distribution function
77
(ECDF) of a sample. We also show the theoretical CDF.

‎galleries/examples/statistics/multiple_histograms_side_by_side.py

Copy file name to clipboardExpand all lines: galleries/examples/statistics/multiple_histograms_side_by_side.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
==========================================
3-
Producing multiple histograms side by side
4-
==========================================
2+
================================
3+
Multiple histograms side by side
4+
================================
55
66
This example plots horizontal histograms of different samples along
77
a categorical x-axis. Additionally, the histograms are plotted to

‎galleries/examples/subplots_axes_and_figures/auto_subplots_adjust.py

Copy file name to clipboardExpand all lines: galleries/examples/subplots_axes_and_figures/auto_subplots_adjust.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
===============================================
3-
Programmatically controlling subplot adjustment
4-
===============================================
2+
===========================================
3+
Programmatically control subplot adjustment
4+
===========================================
55
66
.. note::
77

‎galleries/examples/subplots_axes_and_figures/axhspan_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/subplots_axes_and_figures/axhspan_demo.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=================================
3-
Drawing regions that span an Axes
4-
=================================
2+
==============================
3+
Draw regions that span an Axes
4+
==============================
55
66
`~.Axes.axhspan` and `~.Axes.axvspan` draw rectangles that span the Axes in either
77
the horizontal or vertical direction and are bounded in the other direction. They are

‎galleries/examples/subplots_axes_and_figures/demo_constrained_layout.py

Copy file name to clipboardExpand all lines: galleries/examples/subplots_axes_and_figures/demo_constrained_layout.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=====================================
3-
Resizing Axes with constrained layout
4-
=====================================
2+
===================================
3+
Resize Axes with constrained layout
4+
===================================
55
66
*Constrained layout* attempts to resize subplots in
77
a figure so that there are no overlaps between Axes objects and labels

‎galleries/examples/subplots_axes_and_figures/demo_tight_layout.py

Copy file name to clipboardExpand all lines: galleries/examples/subplots_axes_and_figures/demo_tight_layout.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
===============================
3-
Resizing Axes with tight layout
4-
===============================
2+
=============================
3+
Resize Axes with tight layout
4+
=============================
55
66
`~.Figure.tight_layout` attempts to resize subplots in a figure so that there
77
are no overlaps between Axes objects and labels on the Axes.

‎galleries/examples/subplots_axes_and_figures/ganged_plots.py

Copy file name to clipboardExpand all lines: galleries/examples/subplots_axes_and_figures/ganged_plots.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
==========================
3-
Creating adjacent subplots
4-
==========================
2+
=================
3+
Adjacent subplots
4+
=================
55
66
To create plots that share a common axis (visually) you can set the hspace
77
between the subplots to zero. Passing sharex=True when creating the subplots

‎galleries/examples/subplots_axes_and_figures/gridspec_and_subplots.py

Copy file name to clipboardExpand all lines: galleries/examples/subplots_axes_and_figures/gridspec_and_subplots.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
==================================================
3-
Combining two subplots using subplots and GridSpec
4-
==================================================
2+
================================================
3+
Combine two subplots using subplots and GridSpec
4+
================================================
55
66
Sometimes we want to combine two subplots in an Axes layout created with
77
`~.Figure.subplots`. We can get the `~.gridspec.GridSpec` from the Axes

‎galleries/examples/subplots_axes_and_figures/gridspec_multicolumn.py

Copy file name to clipboardExpand all lines: galleries/examples/subplots_axes_and_figures/gridspec_multicolumn.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=======================================================
3-
Using Gridspec to make multi-column/row subplot layouts
4-
=======================================================
2+
=============================================
3+
Gridspec for multi-column/row subplot layouts
4+
=============================================
55
66
`.GridSpec` is a flexible way to layout
77
subplot grids. Here is an example with a 3x3 grid, and

‎galleries/examples/subplots_axes_and_figures/multiple_figs_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/subplots_axes_and_figures/multiple_figs_demo.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
===================================
3-
Managing multiple figures in pyplot
4-
===================================
2+
=================================
3+
Manage multiple figures in pyplot
4+
=================================
55
66
`matplotlib.pyplot` uses the concept of a *current figure* and *current Axes*.
77
Figures are identified via a figure number that is passed to `~.pyplot.figure`.

‎galleries/examples/subplots_axes_and_figures/share_axis_lims_views.py

Copy file name to clipboardExpand all lines: galleries/examples/subplots_axes_and_figures/share_axis_lims_views.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
2-
Sharing axis limits and views
3-
=============================
2+
===========================
3+
Share axis limits and views
4+
===========================
45
56
It's common to make two or more plots which share an axis, e.g., two subplots
67
with time as a common axis. When you pan and zoom around on one, you want the

‎galleries/examples/subplots_axes_and_figures/subplots_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/subplots_axes_and_figures/subplots_demo.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=================================================
3-
Creating multiple subplots using ``plt.subplots``
4-
=================================================
2+
===============================================
3+
Create multiple subplots using ``plt.subplots``
4+
===============================================
55
66
`.pyplot.subplots` creates a figure and a grid of subplots with a single call,
77
while providing reasonable control over how the individual plots are created.

‎galleries/examples/text_labels_and_annotations/autowrap.py

Copy file name to clipboardExpand all lines: galleries/examples/text_labels_and_annotations/autowrap.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""
2-
==================
3-
Auto-wrapping text
4-
==================
2+
==============
3+
Auto-wrap text
4+
==============
55
6-
Matplotlib can wrap text automatically, but if it's too long, the text will be
7-
displayed slightly outside of the boundaries of the axis anyways.
6+
Matplotlib can wrap text automatically, but if it's too long, the text will
7+
still be displayed slightly outside the boundaries of the axis.
88
99
Note: Auto-wrapping does not work together with
1010
``savefig(..., bbox_inches='tight')``. The 'tight' setting rescales the canvas

‎galleries/examples/text_labels_and_annotations/engineering_formatter.py

Copy file name to clipboardExpand all lines: galleries/examples/text_labels_and_annotations/engineering_formatter.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=========================================
3-
Labeling ticks using engineering notation
4-
=========================================
2+
=======================================
3+
Format ticks using engineering notation
4+
=======================================
55
66
Use of the engineering Formatter.
77
"""

‎galleries/examples/text_labels_and_annotations/font_family_rc.py

Copy file name to clipboardExpand all lines: galleries/examples/text_labels_and_annotations/font_family_rc.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
===========================
3-
Configuring the font family
4-
===========================
2+
=========================
3+
Configure the font family
4+
=========================
55
66
You can explicitly set which font family is picked up, either by specifying
77
family names of fonts installed on user's system, or generic-families

‎galleries/examples/text_labels_and_annotations/rainbow_text.py

Copy file name to clipboardExpand all lines: galleries/examples/text_labels_and_annotations/rainbow_text.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
====================================================
3-
Concatenating text objects with different properties
4-
====================================================
2+
==================================================
3+
Concatenate text objects with different properties
4+
==================================================
55
66
The example strings together several Text objects with different properties
77
(e.g., color or font), positioning each one after the other. The first Text

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.