Skip to content

Commit ef45aae

Browse files
authored
Merge pull request #15273 from jklymak/doc-fix-transform-tut
DOC: don't use term units in transform tutorial
2 parents 70c8a4f + c62a89d commit ef45aae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tutorials/advanced/transforms_tutorial.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,11 @@
312312
#
313313
# .. _transforms-fig-scale-dpi:
314314
#
315-
# Plotting in physical units
316-
# ==========================
315+
# Plotting in physical coordinates
316+
# ================================
317317
#
318318
# Sometimes we want an object to be a certain physical size on the plot.
319-
# Here we draw the same circle as above, but in physical units. If done
319+
# Here we draw the same circle as above, but in physical coordinates. If done
320320
# interactively, you can see that changing the size of the figure does
321321
# not change the offset of the circle from the lower-left corner,
322322
# does not change its size, and the circle remains a circle regardless of
@@ -325,7 +325,7 @@
325325
fig, ax = plt.subplots(figsize=(5, 4))
326326
x, y = 10*np.random.rand(2, 1000)
327327
ax.plot(x, y*10., 'go', alpha=0.2) # plot some data in data coordinates
328-
# add a circle in fixed-units
328+
# add a circle in fixed-coordinates
329329
circ = mpatches.Circle((2.5, 2), 1.0, transform=fig.dpi_scale_trans,
330330
facecolor='blue', alpha=0.75)
331331
ax.add_patch(circ)
@@ -338,7 +338,7 @@
338338
fig, ax = plt.subplots(figsize=(7, 2))
339339
x, y = 10*np.random.rand(2, 1000)
340340
ax.plot(x, y*10., 'go', alpha=0.2) # plot some data in data coordinates
341-
# add a circle in fixed-units
341+
# add a circle in fixed-coordinates
342342
circ = mpatches.Circle((2.5, 2), 1.0, transform=fig.dpi_scale_trans,
343343
facecolor='blue', alpha=0.75)
344344
ax.add_patch(circ)
@@ -416,7 +416,7 @@
416416
#
417417
# Here we apply the transforms in the *opposite* order to the use of
418418
# :class:`~matplotlib.transforms.ScaledTranslation` above. The plot is
419-
# first made in data units (``ax.transData``) and then shifted by
419+
# first made in data coordinates (``ax.transData``) and then shifted by
420420
# ``dx`` and ``dy`` points using ``fig.dpi_scale_trans``. (In typography,
421421
# a `point <https://en.wikipedia.org/wiki/Point_%28typography%29>`_ is
422422
# 1/72 inches, and by specifying your offsets in points, your figure

0 commit comments

Comments
 (0)