Skip to content

Commit 8e6e83c

Browse files
tacaswellQuLogic
andcommitted
DOC: correct typos and markup
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent b021ff4 commit 8e6e83c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

doc/users/next_whats_new/2019-03-25-mplot3d-projection.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ stretched to fit a square bounding box. As this stretching was done after
66
the projection from 3D to 2D, it resulted in distorted images if non-square
77
bounding boxes were used. As of 3.3, this no longer occurs.
88

9-
Currently modes of setting the aspect (via
10-
`~mpl_toolkits.mplot3d.axes3d.Axes3D.set_aspect`), in data space, are
9+
Currently, modes of setting the aspect (via
10+
`~mpl_toolkits.mplot3d.axes3d.Axes3D.set_aspect`) in data space are
1111
not supported for Axes3D but may be in the future. If you want to
1212
simulate having equal aspect in data space, set the ratio of your data
1313
limits to match the value of `~.get_box_aspect`. To control these
1414
ratios use the `~mpl_toolkits.mplot3d.axes3d.Axes3D.set_box_aspect`
15-
method which accepts th ratios as a 3-tuple of X:Y:Z. The default
15+
method which accepts the ratios as a 3-tuple of X:Y:Z. The default
1616
aspect ratio is 4:4:3.

lib/matplotlib/tight_bbox.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def restore_bbox():
4141
for ax, loc in zip(fig.axes, locator_list):
4242
ax.set_axes_locator(loc)
4343
# delete our no-op function which un-hides the
44-
# method
44+
# original method
4545
del ax.apply_aspect
4646

4747
fig.bbox = origBbox

lib/mpl_toolkits/mplot3d/axes3d.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,14 @@ def set_aspect(self, aspect, adjustable=None, anchor=None, share=False):
282282
========= ==================================================
283283
284284
adjustable : None or {'box', 'datalim'}, optional
285-
If not ``None``, this defines which parameter will be adjusted to
285+
If not *None*, this defines which parameter will be adjusted to
286286
meet the required aspect. See `.set_adjustable` for further
287287
details.
288288
289289
Currently ignored by Axes3D
290290
291291
anchor : None or str or 2-tuple of float, optional
292-
If not ``None``, this defines where the Axes will be drawn if there
292+
If not *None*, this defines where the Axes will be drawn if there
293293
is extra space due to aspect constraints. The most common way to
294294
to specify the anchor are abbreviations of cardinal directions:
295295
@@ -357,7 +357,7 @@ def set_box_aspect(self, aspect, *, zoom=1):
357357
physical units. This is not to be confused with the data
358358
aspect, set via `~.Axes.set_aspect`.
359359
360-
The *zoom* is a Axes3D only parameter that controls the overall
360+
The *zoom* is an Axes3D-only parameter that controls the overall
361361
size of the Axes3D in the figure.
362362
363363
Parameters

lib/mpl_toolkits/mplot3d/axis3d.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def get_tightbbox(self, renderer, *, for_layout_only=False):
427427
try:
428428
loc_t = self.get_transform().transform(tick.get_loc())
429429
except AssertionError:
430-
# transforms.transform doesn't allow masked values but
430+
# Transform.transform doesn't allow masked values but
431431
# some scales might make them, so we need this try/except.
432432
pass
433433
else:

0 commit comments

Comments
 (0)