pyleecan.Methods.Geometry.Trapeze.get_patches module

get_patches(self, color='w', edgecolor=None, is_edge_only=False, linestyle=None)[source]

Returns the Trapeze Patch to be display in matplotlib

Parameters:
  • self (Trapeze) – a Trapeze object

  • color – the color of the patch (Default value = PATCH_COLOR)

  • edgecolor – the color of the patch’s edges (Default value = PATCH_EDGE)

  • is_edge_only (bool) – To set the transparancy of the face color to 0 and 1 for the edge color

  • linestyle (str) – Line style of the edge {‘-’, ‘–’, ‘-.’, ‘:’, ‘’, (offset, on-off-seq), …}

Returns:

patch_list – List of patches corresponding to the surface

Return type:

list of matplotlib.patches.Polygon