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

Skip to content

Commit 63744d5

Browse files
authored
Merge pull request #8887 from tonyyli/ensure-oneliner
DOC: Add one-line descriptions to 19 examples currently missing them
2 parents 9dd0db6 + 0108086 commit 63744d5

19 files changed

+25
-7
lines changed

examples/animation/image_slices_viewer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Image Slices Viewer
44
===================
55
6+
This example demonstrates how to scroll through 2D image slices of a 3D array.
67
"""
78
from __future__ import print_function
89

examples/images_contours_and_fields/contourf_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Contourf Demo
44
=============
55
6+
How to use the ``contourf`` function to create filled contour plots.
67
"""
78
import numpy as np
89
import matplotlib.pyplot as plt

examples/images_contours_and_fields/contourf_hatching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Contourf Hatching
44
=================
55
6+
Demo filled contour plots with hatched patterns.
67
"""
78
import matplotlib.pyplot as plt
89
import numpy as np
@@ -29,7 +30,6 @@
2930
)
3031
plt.colorbar()
3132

32-
3333
# ---------------------------------------------
3434
# | Plot #2 |
3535
# ---------------------------------------------

examples/pylab_examples/agg_buffer_to_array.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Agg Buffer To Array
44
===================
55
6+
Convert a rendered figure to its image (NumPy array) representation.
67
"""
78
import matplotlib.pyplot as plt
89
import numpy as np

examples/pylab_examples/axes_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Axes Demo
44
=========
55
6+
Example use of ``plt.axes`` to create inset axes within the main plot axes.
67
"""
78
import matplotlib.pyplot as plt
89
import numpy as np

examples/pylab_examples/axhspan_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Axhspan Demo
44
============
55
6+
Create lines or rectangles that span the axes in either the horizontal or vertical direction.
67
"""
78
import numpy as np
89
import matplotlib.pyplot as plt

examples/pylab_examples/axis_equal_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Axis Equal Demo
44
===============
55
6+
How to set and adjust plots with equal axis ratios.
67
"""
78

89
import matplotlib.pyplot as plt

examples/pylab_examples/figure_title.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Figure Title
44
============
55
6+
Create a figure with separate subplot titles and a centered figure title.
67
"""
78
from matplotlib.font_manager import FontProperties
89
import matplotlib.pyplot as plt

examples/pylab_examples/fill_betweenx_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Fill Betweenx Demo
44
==================
55
6+
Using ``fill_betweenx`` to color between two horizontal curves.
67
"""
78
import matplotlib.mlab as mlab
89
from matplotlib.pyplot import figure, show

examples/pylab_examples/log_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Log Demo
44
========
55
6+
Examples of plots with logarithmic axes.
67
"""
78

89
import numpy as np

examples/pylab_examples/plotfile_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Plotfile Demo
44
=============
55
6+
Example use of ``plotfile`` to plot data directly from a file.
67
"""
78
import matplotlib.pyplot as plt
89
import numpy as np

examples/pylab_examples/polar_legend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Polar Legend
44
============
55
6+
Demo of a legend on a polar-axis plot.
67
"""
78
import numpy as np
89
from matplotlib.pyplot import figure, show, rc

examples/pylab_examples/simple_plot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Simple Plot
44
===========
55
6+
Create a simple plot.
67
"""
78
import matplotlib.pyplot as plt
89
import numpy as np

examples/pylab_examples/specgram_demo.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""
2-
=============
3-
Specgram Demo
4-
=============
2+
================
3+
Spectrogram Demo
4+
================
55
6+
Demo of a spectrogram plot.
67
"""
78
import matplotlib.pyplot as plt
89
import numpy as np

examples/pylab_examples/spine_placement_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Spine Placement Demo
44
====================
55
6+
Adjusting the location and appearance of axis spines.
67
"""
78
import numpy as np
89
import matplotlib.pyplot as plt

examples/pylab_examples/stem_plot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Stem Plot
44
=========
55
6+
Example stem plot.
67
"""
78
import matplotlib.pyplot as plt
89
import numpy as np

examples/pylab_examples/step_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Step Demo
44
=========
55
6+
Example step plots.
67
"""
78
import numpy as np
89
from numpy import ma

examples/pylab_examples/symlog_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Symlog Demo
44
===========
55
6+
Example use of symlog (symmetric log) axis scaling.
67
"""
78
import matplotlib.pyplot as plt
89
import numpy as np

examples/pylab_examples/xcorr_demo.py renamed to examples/pylab_examples/xcorr_acorr_demo.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""
2-
==========
3-
Xcorr Demo
4-
==========
2+
================================
3+
Cross- and Auto-Correlation Demo
4+
================================
55
6+
Example use of cross-correlation (``xcorr``) and auto-correlation (``acorr``) plots.
67
"""
78
import matplotlib.pyplot as plt
89
import numpy as np

0 commit comments

Comments
 (0)