8000 Cleanup a TODO in the Artist tutorial. · matplotlib/matplotlib@599f4a4 · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit 599f4a4

Browse files
committed
Cleanup a TODO in the Artist tutorial.
1 parent 85e3c85 commit 599f4a4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tutorials/intermediate/artists.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -322,17 +322,17 @@ class in the Matplotlib API, and the one you will be working with most
322322
# ax.grid(True)
323323
#
324324
#
325-
# The figure also has its own text, lines, patches and images, which you
326-
# can use to add primitives directly. The default coordinate system for
327-
# the ``Figure`` will simply be in pixels (which is not usually what you
328-
# want) but you can control this by setting the transform property of
329-
# the ``Artist`` you are adding to the figure.
330-
#
331-
# .. TODO: Is that still true?
332-
#
333-
# More useful is "figure coordinates" where (0, 0) is the bottom-left of
334-
# the figure and (1, 1) is the top-right of the figure which you can
335-
# obtain by setting the ``Artist`` transform to :attr:`fig.transFigure
325+
# The figure also has its own ``images``, ``lines``, ``patches`` and ``text``
326+
# attributes, which you can use to add primitives directly. When doing so, the
327+
# default coordinate system for the ``Figure`` will simply be in pixels (which
328+
# is not usually what you want). If you instead use Figure-level methods to add
329< 6E28 /code>+
# Artists (e.g., using `.Figure.text` to add text), then the default coordinate
330+
# system will be "figure coordinates" where (0, 0) is the bottom-left of the
331+
# figure and (1, 1) is the top-right of the figure.
332+
#
333+
# As with all ``Artist``\s, you can control this coordinate system by setting
334+
# the transform property. You can explicitly use "figure coordinates" by
335+
# setting the ``Artist`` transform to :attr:`fig.transFigure
336336
# <matplotlib.figure.Figure.transFigure>`:
337337

338338
import matplotlib.lines as lines

0 commit comments

Comments
 (0)
0