MCPcopy Create free account
hub / github.com/matplotlib/matplotlib / _init_line

Method _init_line

lib/mpl_toolkits/axisartist/axis_artist.py:861–879  ·  view source on GitHub ↗

Initialize the *line* artist that is responsible to draw the axis line.

(self)

Source from the content-addressed store, hash-verified

859 return self._axisline_style
860
861 def _init_line(self):
862 """
863 Initialize the *line* artist that is responsible to draw the axis line.
864 """
865 tran = (self._axis_artist_helper.get_line_transform(self.axes)
866 + self.offset_transform)
867
868 axisline_style = self.get_axisline_style()
869 if axisline_style is None:
870 self.line = PathPatch(
871 self._axis_artist_helper.get_line(self.axes),
872 color=mpl.rcParams['axes.edgecolor'],
873 fill=False,
874 linewidth=mpl.rcParams['axes.linewidth'],
875 capstyle=mpl.rcParams['lines.solid_capstyle'],
876 joinstyle=mpl.rcParams['lines.solid_joinstyle'],
877 transform=tran)
878 else:
879 self.line = axisline_style(self, transform=tran)
880
881 def _draw_line(self, renderer):
882 self.line.set_path(self._axis_artist_helper.get_line(self.axes))

Callers 2

__init__Method · 0.95
set_axisline_styleMethod · 0.95

Calls 4

get_axisline_styleMethod · 0.95
PathPatchClass · 0.90
get_line_transformMethod · 0.45
get_lineMethod · 0.45

Tested by

no test coverage detected