Skip to content

Commit 27b6bc5

Browse files
committed
AnchoredDirectionArrows: make variable not private
1 parent c0762d2 commit 27b6bc5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/mpl_toolkits/axes_grid1/anchored_artists.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def __init__(self, transform, label_x, label_y, length=0.15,
495495
p_x, p_y : `matplotlib.patches.PathPatch`
496496
Patch for arrow labels
497497
498-
_box : `matplotlib.offsetbox.AuxTransformBox`
498+
box : `matplotlib.offsetbox.AuxTransformBox`
499499
Container for the arrows and labels.
500500
501501
Notes
@@ -555,7 +555,7 @@ def __init__(self, transform, label_x, label_y, length=0.15,
555555
t_start = transform
556556
t_end = t_start + transforms.Affine2D().rotate_deg(angle)
557557

558-
self._box = AuxTransformBox(t_end)
558+
self.box = AuxTransformBox(t_end)
559559

560560
length_x = length
561561
length_y = length*aspect_ratio
@@ -576,8 +576,8 @@ def __init__(self, transform, label_x, label_y, length=0.15,
576576
shrinkB=0.0,
577577
**arrow_props)
578578

579-
self._box.add_artist(self.arrow_x)
580-
self._box.add_artist(self.arrow_y)
579+
self.box.add_artist(self.arrow_x)
580+
self.box.add_artist(self.arrow_y)
581581

582582
text_path_x = TextPath((
583583
length_x+sep_x, back_length*length_y+sep_y), label_x,
@@ -592,5 +592,5 @@ def __init__(self, transform, label_x, label_y, length=0.15,
592592
self._box.add_artist(self.p_y)
593593

594594
AnchoredOffsetbox.__init__(self, loc, pad=pad, borderpad=borderpad,
595-
child=self._box,
595+
child=self.box,
596596
frameon=frameon, **kwargs)

0 commit comments

Comments
 (0)