Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit1a55b1a

Browse files
committed
Edit mplot3d examples for correctness and consistency
1 parent7007c5c commit1a55b1a

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 thecontour3d_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+
correspondingto the level c is graphed on the plane``z=c``.
1111
"""
1212

1313
frommpl_toolkits.mplot3dimportaxes3d

‎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 for2 dimensional data as a bar graph in 3D.
6+
Demo of a histogram for2D data as a bar graph in 3D.
77
"""
88

99
importmatplotlib.pyplotasplt

‎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-
ParametricCurve
3+
Parametriccurve
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-
LorenzAttractor
3+
Lorenzattractor
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 3Daxes in samefigure
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-
AutomaticText Offsetting
3+
Automatictext 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 all3 axes.
6+
A very simple animation of a rotating 3D plot about allthree 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: 4 additions & 4 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
11-
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
10+
- Using the`~.Axes.text` function with three types of*zdir* values: None, an
11+
axisname (ex. 'x'), or a direction tuple (ex. (1, 1, 0)).
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 thenumpy logo
3+
3D voxel plot of theNumPy 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 withrgb colors
3+
3D voxel / volumetric plot withRGB 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)

[8]ページ先頭

©2009-2025 Movatter.jp