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

Method get_facecolor

lib/matplotlib/collections.py:2686–2695  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2684 return ec[unmasked_polys, :]
2685
2686 def get_facecolor(self):
2687 # docstring inherited
2688 # We only want to return the facecolors of the polygons
2689 # that were drawn.
2690 fc = super().get_facecolor()
2691 unmasked_polys = self._get_unmasked_polys().ravel()
2692 if len(fc) != len(unmasked_polys):
2693 # Mapping is off
2694 return fc
2695 return fc[unmasked_polys, :]
2696
2697 def set_array(self, A):
2698 # docstring inherited

Callers

nothing calls this directly

Calls 2

_get_unmasked_polysMethod · 0.95
get_facecolorMethod · 0.45

Tested by

no test coverage detected