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

Method set_linewidth

lib/matplotlib/lines.py:1145–1158  ·  view source on GitHub ↗

Set the line width in points. Parameters ---------- w : float Line width, in points.

(self, w)

Source from the content-addressed store, hash-verified

1143 self.stale = True
1144
1145 def set_linewidth(self, w):
1146 """
1147 Set the line width in points.
1148
1149 Parameters
1150 ----------
1151 w : float
1152 Line width, in points.
1153 """
1154 w = float(w)
1155 if self._linewidth != w:
1156 self.stale = True
1157 self._linewidth = w
1158 self._dash_pattern = _scale_dashes(*self._unscaled_dash_pattern, w)
1159
1160 def set_linestyle(self, ls):
1161 """

Callers 11

__init__Method · 0.95
create_artistsMethod · 0.95
__init__Method · 0.45
drawMethod · 0.45
_default_update_propMethod · 0.45
_update_propMethod · 0.45
draw_pathMethod · 0.45
contour_demo.pyFile · 0.45
bar_of_pie.pyFile · 0.45

Calls 1

_scale_dashesFunction · 0.85

Tested by

no test coverage detected