Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9933e23 + 11b0510 commit af4ab53Copy full SHA for af4ab53
lib/matplotlib/legend.py
@@ -874,16 +874,6 @@ def _auto_legend_data(self):
874
875
return [vertices, bboxes, lines, offsets]
876
877
- def draw_frame(self, b):
878
- """
879
- Set whether to draw a frame around the legend box.
880
-
881
- Parameters
882
- ----------
883
- b : bool
884
885
- self.set_frame_on(b)
886
887
def get_children(self):
888
"""Return the list of child artists."""
889
children = []
@@ -972,6 +962,8 @@ def set_frame_on(self, b):
972
962
self._drawFrame = b
973
963
self.stale = True
974
964
965
+ draw_frame = set_frame_on # Backcompat alias.
966
+
975
967
def get_bbox_to_anchor(self):
976
968
"""Return the bbox that the legend will be anchored to."""
977
969
if self._bbox_to_anchor is None:
0 commit comments