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

Skip to content

Commit ff1be78

Browse files
committed
Shorten some docstrings.
- Remove the explicit :class: annotation (which isn't necessary). - Make docstrings of all Axes.add_foo methods consistent among themselves: a) having a separate Parameters/Returns section for each of them seems completely overkill; b) most (all?) of them set the clip_path and the transform on the added artist, so the snippet to that effect that was present in add_patch should be added to either all or none of the methods.
1 parent cfc01ce commit ff1be78

File tree

3 files changed

+61
-105
lines changed

3 files changed

+61
-105
lines changed

lib/matplotlib/afm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _to_bool(s):
8181
def _sanity_check(fh):
8282
"""
8383
Check if the file at least looks like AFM.
84-
If not, raise :exc:`RuntimeError`.
84+
If not, raise `RuntimeError`.
8585
"""
8686

8787
# Remember the file position in case the caller wants to

0 commit comments

Comments
 (0)