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

Method set_linewidth

lib/matplotlib/collections.py:652–670  ·  view source on GitHub ↗

Set the linewidth(s) for the collection. *lw* can be a scalar or a sequence; if it is a sequence the patches will cycle through the sequence Parameters ---------- lw : float or list of floats

(self, lw)

Source from the content-addressed store, hash-verified

650 return mpl.rcParams['patch.linewidth'] # validated as float
651
652 def set_linewidth(self, lw):
653 """
654 Set the linewidth(s) for the collection. *lw* can be a scalar
655 or a sequence; if it is a sequence the patches will cycle
656 through the sequence
657
658 Parameters
659 ----------
660 lw : float or list of floats
661 """
662 if lw is None:
663 lw = self._get_default_linewidth()
664 # get the un-scaled/broadcast lw
665 self._us_lw = np.atleast_1d(lw)
666
667 # scale all of the dash patterns.
668 self._linewidths, self._linestyles = self._bcast_lwls(
669 self._us_lw, self._us_linestyles)
670 self.stale = True
671
672 def set_linestyle(self, ls):
673 """

Callers 4

__init__Method · 0.95
drawMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45

Calls 2

_bcast_lwlsMethod · 0.95

Tested by

no test coverage detected