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

Skip to content

Commit 4c67a08

Browse files
committed
DOC: Fix syntax for ToolBase.image docstring
1 parent 850bf04 commit 4c67a08

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/matplotlib/backend_tools.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ class ToolBase:
9999
"""
100100
Icon filename.
101101
102-
``str | None``: Filename of the Toolbar icon; either absolute, or
103-
relative to the directory containing the Python source file where the
104-
``Tool.image``class attribute is defined (in the latter case, this cannot
105-
be defined as an instance attribute). In either case, the extension is
106-
optional; leaving it off lets individual backends select the icon format
107-
they prefer. If None, the *name* is used as a label in the toolbar button.
102+
``str | None``: Filename of the Toolbar icon; either absolute, or relative to the
103+
directory containing the Python source file where the ``Tool.image`` class attribute
104+
is defined (in the latter case, this cannot be defined as an instance attribute).
105+
In either case, the extension is optional; leaving it off lets individual backends
106+
select the icon format they prefer. If None, the *name* is used as a label in the
107+
toolbar button.
108108
"""
109109

110110
def __init__(self, toolmanager, name):

0 commit comments

Comments
 (0)