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

Method _init3d

lib/mpl_toolkits/mplot3d/axis3d.py:148–167  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

146 property(lambda self: self.axis_name))
147
148 def _init3d(self):
149 self.line = mlines.Line2D(
150 xdata=(0, 0), ydata=(0, 0),
151 linewidth=self._axinfo['axisline']['linewidth'],
152 color=self._axinfo['axisline']['color'],
153 antialiased=True)
154
155 # Store dummy data in Polygon object
156 self.pane = mpatches.Polygon([[0, 0], [0, 1]], closed=False)
157 self.set_pane_color(self._axinfo['color'])
158
159 self.axes._set_artist_props(self.line)
160 self.axes._set_artist_props(self.pane)
161 self.gridlines = art3d.Line3DCollection([])
162 self.axes._set_artist_props(self.gridlines)
163 self.axes._set_artist_props(self.label)
164 self.axes._set_artist_props(self.offsetText)
165 # Need to be able to place the label at the correct location
166 self.label._transform = self.axes.transData
167 self.offsetText._transform = self.axes.transData
168
169 @_api.deprecated("3.6", pending=True)
170 def init3d(self): # After deprecation elapses, inline _init3d to __init__.

Callers 2

__init__Method · 0.95
init3dMethod · 0.95

Calls 2

set_pane_colorMethod · 0.95
_set_artist_propsMethod · 0.45

Tested by

no test coverage detected