Skip to content

Commit d024684

Browse files
committed
AnchoredDirectionArrows: Fix error
1 parent 27b6bc5 commit d024684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mpl_toolkits/axes_grid1/anchored_artists.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,13 +583,13 @@ def __init__(self, transform, label_x, label_y, length=0.15,
583583
length_x+sep_x, back_length*length_y+sep_y), label_x,
584584
size=fontsize, prop=fontproperties)
585585
self.p_x = PathPatch(text_path_x, transform=t_start, **text_props)
586-
self._box.add_artist(self.p_x)
586+
self.box.add_artist(self.p_x)
587587

588588
text_path_y = TextPath((
589589
length_x*back_length+sep_x, length_y*(1-back_length)+sep_y),
590590
label_y, size=fontsize, prop=fontproperties)
591591
self.p_y = PathPatch(text_path_y, **text_props)
592-
self._box.add_artist(self.p_y)
592+
self.box.add_artist(self.p_y)
593593

594594
AnchoredOffsetbox.__init__(self, loc, pad=pad, borderpad=borderpad,
595595
child=self.box,

0 commit comments

Comments
 (0)