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

Skip to content

Commit c2705d0

Browse files
committed
mplot3d document cleanup and terminology standardizing
1 parent 52152ec commit c2705d0

5 files changed

Lines changed: 25 additions & 24 deletions

File tree

doc/mpl_toolkits/mplot3d/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ mplot3d API
2222

2323
.. note::
2424
Historically, axis3d has suffered from having hard-coded constants
25-
controlling the look and feel of the 3d plot. This precluded user
25+
controlling the look and feel of the 3D plot. This precluded user
2626
level adjustments such as label spacing, font colors and panel colors.
2727
For version 1.1.0, these constants have been consolidated into a single
2828
private member dictionary, `self._axinfo`, for the axis object. This is

doc/mpl_toolkits/mplot3d/faq.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ mplot3d FAQ
66

77
How is mplot3d different from MayaVi?
88
=====================================
9-
`MayaVi2 <http://code.enthought.com/projects/mayavi/documentation.php>`_ is a very powerful and featureful 3D graphing library. For advanced
9+
`MayaVi2 <http://code.enthought.com/projects/mayavi/documentation.php>`_
10+
is a very powerful and featureful 3D graphing library. For advanced
1011
3D scenes and excellent rendering capabilities, it is highly recomended to
1112
use MayaVi2.
1213

@@ -19,7 +20,7 @@ plots.
1920
My 3D plot doesn't look right at certain viewing angles
2021
=======================================================
2122
This is probably the most commonly reported issue with mplot3d. The problem
22-
is that -- from some viewing angles -- some 3D objects would appear in front
23+
is that -- from some viewing angles -- a 3D object would appear in front
2324
of another object, even though it is physically behind it. This can result in
2425
plots that do not look "physically correct."
2526

@@ -28,7 +29,7 @@ artifact, it is currently an intractable problem, and can not be fully solved
2829
until matplotlib supports 3D graphics rendering at its core.
2930

3031
The problem occurs due to the reduction of 3D data down to 2D + z-order
31-
scalar. A single value represents the 3rd dimention for all parts of 3D
32+
scalar. A single value represents the 3rd dimension for all parts of 3D
3233
objects in a collection. Therefore, when the bounding boxes of two collections
3334
intersect, it becomes possible for this artifact to occur. Furthermore, the
3435
intersection of two 3D objects (such as polygons or patches) can not be

doc/mpl_toolkits/mplot3d/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ mplot3d
77

88
Matplotlib mplot3d toolkit
99
==========================
10-
The mplot3d toolkit adds simple 3d plotting capabilities to matplotlib by
11-
supplying an axes object that can create a 2d projection of a 3d scene.
12-
The resulting graph will have the same look and feel as regular 2d plots.
10+
The mplot3d toolkit adds simple 3D plotting capabilities to matplotlib by
11+
supplying an axes object that can create a 2D projection of a 3D scene.
12+
The resulting graph will have the same look and feel as regular 2D plots.
1313

1414
The interactive backends also provide the ability to rotate and zoom
15-
the 3d scene. One can rotate the 3d scene by simply clicking-and-dragging
15+
the 3D scene. One can rotate the 3D scene by simply clicking-and-dragging
1616
the scene. Zooming is done by right-clicking the scene and dragging the
1717
mouse up and down. Note that one does not use the zoom button like one
18-
would use for regular 2d plots.
18+
would use for regular 2D plots.
1919

2020
.. toctree::
2121
:maxdepth: 2

doc/mpl_toolkits/mplot3d/tutorial.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ add a new axes to it of type :class:`~mpl_toolkits.mplot3d.Axes3D`::
2222
ax = fig.add_subplot(111, projection='3d')
2323

2424
.. versionadded:: 1.0.0
25-
This approach is the preferred method of creating a 3d axes.
25+
This approach is the preferred method of creating a 3D axes.
2626

2727
.. note::
28-
Prior to version 1.0.0, the method of creating a 3d axes was
28+
Prior to version 1.0.0, the method of creating a 3D axes was
2929
different. For those using older versions of matplotlib, change
3030
``ax = fig.add_subplot(111, projection='3d')``
3131
to ``ax = Axes3D(fig)``.
@@ -121,12 +121,12 @@ Text
121121

122122
Subplotting
123123
====================
124-
Having multiple 3d plots in a single figure is the same
125-
as it is for 2d plots. Also, you can have both 2d and 3d plots
124+
Having multiple 3D plots in a single figure is the same
125+
as it is for 2D plots. Also, you can have both 2D and 3D plots
126126
in the same figure.
127127

128128
.. versionadded:: 1.0.0
129-
Subplotting 3d plots was added in v1.0.0. Earlier version can not
129+
Subplotting 3D plots was added in v1.0.0. Earlier version can not
130130
do this.
131131

132132
.. plot:: mpl_examples/mplot3d/subplot3d_demo.py

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def set_top_view(self):
123123
Axes.set_ylim(self, -ydwl, ydw, auto=None)
124124

125125
def _init_axis(self):
126-
'''Init 3d axes; overrides creation of regular X/Y axes'''
126+
'''Init 3D axes; overrides creation of regular X/Y axes'''
127127
self.w_xaxis = axis3d.XAxis('x', self.xy_viewLim.intervalx,
128128
self.xy_dataLim.intervalx, self)
129129
self.xaxis = self.w_xaxis
@@ -401,7 +401,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
401401
"""
402402
Autoscale the view limits using the data limits.
403403
See :meth:`matplotlib.axes.Axes.autoscale_view` for documentation.
404-
Note that this function applies to the 3d axes, and as such
404+
Note that this function applies to the 3D axes, and as such
405405
adds the *scalez* to the function arguments.
406406
407407
.. versionchanged :: 1.1.0
@@ -463,7 +463,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
463463
self.set_zlim3d(self.zz_dataLim.intervalx)
464464

465465
def get_w_lims(self):
466-
'''Get 3d world limits.'''
466+
'''Get 3D world limits.'''
467467
minx, maxx = self.get_xlim3d()
468468
miny, maxy = self.get_ylim3d()
469469
minz, maxz = self.get_zlim3d()
@@ -697,7 +697,7 @@ def get_zticklines(self) :
697697

698698
def clabel(self, *args, **kwargs):
699699
"""
700-
This function is currently not implemented for 3d axes.
700+
This function is currently not implemented for 3D axes.
701701
Returns *None*.
702702
"""
703703
return None
@@ -983,15 +983,15 @@ def get_zlabel(self) :
983983

984984
def get_frame_on(self):
985985
"""
986-
Get whether the 3d axes panels are drawn
986+
Get whether the 3D axes panels are drawn
987987
988988
.. versionadded :: 1.1.0
989989
"""
990990
return self._frameon
991991

992992
def set_frame_on(self, b):
993993
"""
994-
Set whether the 3d axes panels are drawn
994+
Set whether the 3D axes panels are drawn
995995
996996
ACCEPTS: [ *True* | *False* ]
997997
@@ -1257,7 +1257,7 @@ def plot(self, xs, ys, *args, **kwargs):
12571257
*zs* z value(s), either one for all points or one for
12581258
each point.
12591259
*zdir* Which direction to use as z ('x', 'y' or 'z')
1260-
when plotting a 2d set.
1260+
when plotting a 2D set.
12611261
========== ================================================
12621262
12631263
Other arguments are passed on to
@@ -1723,7 +1723,7 @@ def tricontourf(self, X, Y, Z, offset=None, zdir='z', *args, **kwargs):
17231723

17241724
def add_collection3d(self, col, zs=0, zdir='z'):
17251725
'''
1726-
Add a 3d collection object to the plot.
1726+
Add a 3D collection object to the plot.
17271727
17281728
2D collection types are converted to a 3D version by
17291729
modifying the object and adding z coordinate information.
@@ -1760,7 +1760,7 @@ def scatter(self, xs, ys, zs=0, zdir='z', s=20, c='b', *args, **kwargs):
17601760
*ys* or a single value to place all points in
17611761
the same plane. Default is 0.
17621762
*zdir* Which direction to use as z ('x', 'y' or 'z')
1763-
when plotting a 2d set.
1763+
when plotting a 2D set.
17641764
*s* size in points^2. It is a scalar or an array of the same
17651765
length as *x* and *y*.
17661766
@@ -1828,7 +1828,7 @@ def bar(self, left, height, zs=0, zdir='z', *args, **kwargs):
18281828
*zs* Z coordinate of bars, if one value is specified
18291829
they will all be placed at the same z.
18301830
*zdir* Which direction to use as z ('x', 'y' or 'z')
1831-
when plotting a 2d set.
1831+
when plotting a 2D set.
18321832
========== ================================================
18331833
18341834
Keyword arguments are passed onto :func:`~matplotlib.axes.Axes.bar`.

0 commit comments

Comments
 (0)