MCPcopy
hub / github.com/matplotlib/matplotlib / set_wrap

Method set_wrap

lib/matplotlib/text.py:708–727  ·  view source on GitHub ↗

Set whether the text can be wrapped. Wrapping makes sure the text is confined to the (sub)figure box. It does not take into account any other artists. Parameters ---------- wrap : bool Notes ----- Wrapping does not work toge

(self, wrap)

Source from the content-addressed store, hash-verified

706 return self._wrap
707
708 def set_wrap(self, wrap):
709 """
710 Set whether the text can be wrapped.
711
712 Wrapping makes sure the text is confined to the (sub)figure box. It
713 does not take into account any other artists.
714
715 Parameters
716 ----------
717 wrap : bool
718
719 Notes
720 -----
721 Wrapping does not work together with
722 ``savefig(..., bbox_inches='tight')`` (which is also used internally
723 by ``%matplotlib inline`` in IPython/Jupyter). The 'tight' setting
724 rescales the canvas to accommodate all content and happens before
725 wrapping.
726 """
727 self._wrap = wrap
728
729 def _get_wrap_line_width(self):
730 """

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected