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

Method get_path

lib/matplotlib/table.py:221–233  ·  view source on GitHub ↗

Return a `.Path` for the `.visible_edges`.

(self)

Source from the content-addressed store, hash-verified

219 self.stale = True
220
221 def get_path(self):
222 """Return a `.Path` for the `.visible_edges`."""
223 codes = [Path.MOVETO]
224 codes.extend(
225 Path.LINETO if edge in self._visible_edges else Path.MOVETO
226 for edge in self._edges)
227 if Path.MOVETO not in codes[1:]: # All sides are visible
228 codes[-1] = Path.CLOSEPOLY
229 return Path(
230 [[0.0, 0.0], [1.0, 0.0], [1.0, 1.0], [0.0, 1.0], [0.0, 0.0]],
231 codes,
232 readonly=True
233 )
234
235
236CustomCell = Cell # Backcompat. alias.

Callers 15

drawMethod · 0.45
__init__Method · 0.45
_revalidateMethod · 0.45
__init__Method · 0.45
_auto_legend_dataMethod · 0.45
get_glyphs_with_fontMethod · 0.45
get_glyphs_mathtextMethod · 0.45
get_glyphs_texMethod · 0.45
__init__Method · 0.45
set_pathsMethod · 0.45
_font_to_ps_type3Function · 0.45
_get_pdf_charprocsFunction · 0.45

Calls 1

PathClass · 0.85

Tested by 13

test_customcellFunction · 0.36
test_noiseFunction · 0.36
_get_simplifiedFunction · 0.36
test_sine_plus_noiseFunction · 0.36
test_fft_peaksFunction · 0.36
test_label_without_ticksFunction · 0.36
test_ft2font_get_pathFunction · 0.36
test_stem_polar_baselineFunction · 0.36
test_axvspanFunction · 0.36