8000 Edit mplot3d examples for correctness and consistency · matplotlib/matplotlib@1a55b1a · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a55b1a

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

17 files changed

+33
-33
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

0 commit comments

Comments
 (0)
0