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

Method _copy_collection_props

lib/matplotlib/legend_handler.py:710–716  ·  view source on GitHub ↗

Copy properties from the `.LineCollection` *orig_handle* to the `.Line2D` *legend_handle*.

(self, legend_handle, orig_handle)

Source from the content-addressed store, hash-verified

708 return artists
709
710 def _copy_collection_props(self, legend_handle, orig_handle):
711 """
712 Copy properties from the `.LineCollection` *orig_handle* to the
713 `.Line2D` *legend_handle*.
714 """
715 legend_handle.set_color(orig_handle.get_color()[0])
716 legend_handle.set_linestyle(orig_handle.get_linestyle()[0])
717
718
719class HandlerTuple(HandlerBase):

Callers

nothing calls this directly

Calls 4

set_colorMethod · 0.45
get_colorMethod · 0.45
set_linestyleMethod · 0.45
get_linestyleMethod · 0.45

Tested by

no test coverage detected