Skip to content

Commit a63c078

Browse files
committed
fixed tutorial
1 parent 822ec28 commit a63c078

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tutorials/intermediate/legend_guide.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
# The :class:`~matplotlib.legend_handler.HandlerTuple` class can also be used to
217217
# assign several legend keys to the same entry:
218218

219-
from matplotlib.legend_handler import HandlerLine2D, HandlerTuple, HandlerBase
219+
from matplotlib.legend_handler import HandlerLine2D, HandlerTuple
220220

221221
p1, = plt.plot([1, 2.5, 3], 'r-d')
222222
p2, = plt.plot([3, 2, 1], 'k-o')
@@ -234,6 +234,7 @@
234234
# single artist for the legend to use. Signature details about the "legend_artist"
235235
# are documented at :meth:`~matplotlib.legend_handler.HandlerBase.legend_artist`.
236236

237+
from matplotlib.legend_handler import HandlerBase
237238
import matplotlib.patches as mpatches
238239

239240

0 commit comments

Comments
 (0)