grains.analysis.plot_prop

grains.analysis.plot_prop(prop, pixel_per_unit=1, show_axis=True)[source]

Plots relevant region properties into a single figure. Four subfigures are created, giving the region’s

  • image, its area and its center

  • filled image, its area

  • bounding box, its area

  • convex image, its area

Parameters
  • prop (RegionProperties) – Describes a labeled region.

  • pixel_per_unit (float or int, optional) – Number of pixels contained in a certain unit. The default is 1, in which case all measurements are performed in pixel units.

Returns

fig (matplotlib.figure.Figure) – The figure object is returned in case further manipulations are necessary.