MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_frame_on

Method set_frame_on

lib/matplotlib/legend.py:1097–1106  ·  view source on GitHub ↗

Set whether the legend box patch is drawn. Parameters ---------- b : bool

(self, b)

Source from the content-addressed store, hash-verified

1095 return self.legendPatch.get_visible()
1096
1097 def set_frame_on(self, b):
1098 """
1099 Set whether the legend box patch is drawn.
1100
1101 Parameters
1102 ----------
1103 b : bool
1104 """
1105 self.legendPatch.set_visible(b)
1106 self.stale = True
1107
1108 draw_frame = set_frame_on # Backcompat alias.
1109

Callers 2

boxFunction · 0.45
demo_agg_filter.pyFile · 0.45

Calls 1

set_visibleMethod · 0.45

Tested by

no test coverage detected