Skip to content

Commit 3b55a8a

Browse files
authored
Merge pull request #9861 from anntzer/cleanups
Remove some unused imports; reword/remarkup some docstrings.
2 parents b3b91cc + 8dbaea6 commit 3b55a8a

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
ParserElement.enablePackrat()
4343

4444
from matplotlib.afm import AFM
45-
from matplotlib.cbook import Bunch, get_realpath_and_stat, maxdict
45+
from matplotlib.cbook import Bunch, get_realpath_and_stat
4646
from matplotlib.ft2font import (FT2Image, KERNING_DEFAULT, LOAD_FORCE_AUTOHINT,
4747
LOAD_NO_HINTING)
4848
from matplotlib.font_manager import findfont, FontProperties, get_font

lib/matplotlib/path.py

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
"""
2-
A module for dealing with the polylines used throughout matplotlib.
1+
r"""
2+
A module for dealing with the polylines used throughout Matplotlib.
33
4-
The primary class for polyline handling in matplotlib is :class:`Path`.
5-
Almost all vector drawing makes use of Paths somewhere in the drawing
6-
pipeline.
4+
The primary class for polyline handling in Matplotlib is `Path`. Almost all
5+
vector drawing makes use of `Path`\s somewhere in the drawing pipeline.
76
8-
Whilst a :class:`Path` instance itself cannot be drawn, there exists
9-
:class:`~matplotlib.artist.Artist` subclasses which can be used for
10-
convenient Path visualisation - the two most frequently used of these are
11-
:class:`~matplotlib.patches.PathPatch` and
12-
:class:`~matplotlib.collections.PathCollection`.
7+
Whilst a `Path` instance itself cannot be drawn, some `~.Artist` subclasses,
8+
such as `~.PathPatch` and `~.PathCollection`, can be used for convenient `Path`
9+
visualisation.
1310
"""
1411

1512
from __future__ import (absolute_import, division, print_function,
1613
unicode_literals)
1714

1815
import six
1916

20-
import math
2117
from weakref import WeakValueDictionary
2218

2319
try:
@@ -28,8 +24,7 @@
2824
import numpy as np
2925

3026
from . import _path, rcParams
31-
from .cbook import (_to_unmasked_float_array, simple_linear_interpolation,
32-
maxdict)
27+
from .cbook import _to_unmasked_float_array, simple_linear_interpolation
3328

3429

3530
class Path(object):

0 commit comments

Comments
 (0)