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

Skip to content

Commit 399cd78

Browse files
committed
Edit mplot3d examples for correctness and consistency
1 parent 7007c5c commit 399cd78

17 files changed

+32
-32
lines changed

examples/mplot3d/2dcollections3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plot 2D data on 3D plot
44
=======================
55
6-
Demonstrates using ax.plot's zdir keyword to plot 2D data on
6+
Demonstrates using ax.plot's *zdir* keyword to plot 2D data on
77
selective axes of a 3D plot.
88
"""
99

examples/mplot3d/contour3d.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
==================================================
3-
Demonstrates plotting contour (level) curves in 3D
4-
==================================================
2+
=================================
3+
Plot contour (level) curves in 3D
4+
=================================
55
66
This is like a contour plot in 2D except that the ``f(x, y)=c`` curve is
77
plotted on the plane ``z=c``.

examples/mplot3d/contour3d_2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
============================================================================
3-
Demonstrates plotting contour (level) curves in 3D using the extend3d option
4-
============================================================================
2+
===========================================================
3+
Plot contour (level) curves in 3D using the extend3d option
4+
===========================================================
55
6-
This modification of the contour3d_demo example uses extend3d=True to
6+
This modification of the :doc:`contour3d` example uses ``extend3d=True`` to
77
extend the curves vertically into 'ribbons'.
88
"""
99

examples/mplot3d/contourf3d.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
Filled contours
44
===============
55
6-
contourf differs from contour in that it creates filled contours, ie.
7-
a discrete number of colours are used to shade the domain.
6+
`.Axes3D.contourf` differs from `.Axes3D.contour` in that it creates filled
7+
contours, i.e. a discrete number of colours are used to shade the domain.
88
9-
This is like a contourf plot in 2D except that the shaded region corresponding
10-
to the level c is graphed on the plane z=c.
9+
This is like a `.Axes.contourf` plot in 2D except that the shaded region
10+
corresponding to the level c is graphed on the plane ``z=c``.
1111
"""
1212

1313
from mpl_toolkits.mplot3d import axes3d

examples/mplot3d/hist3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Create 3D histogram of 2D data
44
==============================
55
6-
Demo of a histogram for 2 dimensional data as a bar graph in 3D.
6+
Demo of a histogram for 2D data as a bar graph in 3D.
77
"""
88

99
import matplotlib.pyplot as plt

examples/mplot3d/lines3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
================
3-
Parametric Curve
3+
Parametric curve
44
================
55
66
This example demonstrates plotting a parametric curve in 3D.

examples/mplot3d/lorenz_attractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
================
3-
Lorenz Attractor
3+
Lorenz attractor
44
================
55
66
This is an example of plotting Edward Lorenz's 1963 `"Deterministic Nonperiodic

examples/mplot3d/mixed_subplots.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=================================
3-
2D and 3D *Axes* in same *Figure*
4-
=================================
2+
=============================
3+
2D and 3D axes in same figure
4+
=============================
55
66
This example shows a how to plot a 2D and 3D plot on the same figure.
77
"""

examples/mplot3d/offset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
=========================
3-
Automatic Text Offsetting
3+
Automatic text offsetting
44
=========================
55
66
This example demonstrates mplot3d's offset text display.

examples/mplot3d/rotate_axes3d_sgskip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Rotating a 3D plot
44
==================
55
6-
A very simple animation of a rotating 3D plot about all 3 axes.
6+
A very simple animation of a rotating 3D plot about all three axes.
77
88
See :doc:`wire3d_animation_sgskip` for another example of animating a 3D plot.
99

examples/mplot3d/surface3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
=====================
55
66
Demonstrates plotting a 3D surface colored with the coolwarm colormap.
7-
The surface is made opaque by using antialiased=False.
7+
The surface is made opaque by using ``antialiased=False``.
88
9-
Also demonstrates using the LinearLocator and custom formatting for the
9+
Also demonstrates using the `.LinearLocator` and custom formatting for the
1010
z axis tick labels.
1111
"""
1212

examples/mplot3d/text3d.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
88
Functionality shown:
99
10-
- Using the text function with three types of 'zdir' values: None, an axis
10+
- Using the `~.Axes.text` function with three types of *zdir* values: None, an axis
1111
name (ex. 'x'), or a direction tuple (ex. (1, 1, 0)).
12-
- Using the text function with the color keyword.
13-
- Using the text2D function to place text on a fixed position on the ax
12+
- Using the `~.Axes.text` function with the color keyword.
13+
- Using the `.text2D` function to place text on a fixed position on the ax
1414
object.
1515
"""
1616

examples/mplot3d/trisurf3d_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Two additional examples of plotting surfaces with triangular mesh.
77
88
The first demonstrates use of plot_trisurf's triangles argument, and the
9-
second sets a Triangulation object's mask and passes the object directly
9+
second sets a `.Triangulation` object's mask and passes the object directly
1010
to plot_trisurf.
1111
"""
1212

examples/mplot3d/voxels_numpy_logo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
===============================
3-
3D voxel plot of the numpy logo
3+
3D voxel plot of the NumPy logo
44
===============================
55
66
Demonstrates using `.Axes3D.voxels` with uneven coordinates.

examples/mplot3d/voxels_rgb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
==========================================
3-
3D voxel / volumetric plot with rgb colors
3+
3D voxel / volumetric plot with RGB colors
44
==========================================
55
66
Demonstrates using `.Axes3D.voxels` to visualize parts of a color space.

examples/mplot3d/wire3d_animation_sgskip.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=============================
3-
Animating a 3D wireframe plot
4-
=============================
2+
===========================
3+
Animate a 3D wireframe plot
4+
===========================
55
66
A very simple "animation" of a 3D plot. See also :doc:`rotate_axes3d_sgskip`.
77

examples/mplot3d/wire3d_zero_stride.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
3D wireframe plots in one direction
44
===================================
55
6-
Demonstrates that setting rstride or cstride to 0 causes wires to not be
6+
Demonstrates that setting *rstride* or *cstride* to 0 causes wires to not be
77
generated in the corresponding direction.
88
"""
99

0 commit comments

Comments
 (0)