vampire.plot.plot_contours

vampire.plot.plot_contours(contours_df, object_index, output_path=None, build_name=None, apply_name=None, contour_scale=3, ax=None, fig_size=(6, 2), color=None, alpha=None, linewidth=None)[source]

Plots mean contours.

Parameters
contours_dfDataFrame

DataFrame containing contour coordinates of objects and a column named ‘cluster_id’ that indicates the cluster that an object belongs.

object_indexndarray of str

A list of labels corresponding to the leaf nodes.

output_pathstr, optional

Path to the output directory. Default None, does not save figure. Cannot be not None at the same time with ax.

build_namestr, optional

Name of the built model.

apply_namestr, optional

Name of the image set being applied to.

contour_scalefloat, optional

Scale of the contour shapes.

axAxes, optional

Figure axis to be plotted on. Cannot be not None with output_path at the same time.

fig_size(float, float), optional

Width, height in inches. Default (6, 2).

colorstr, optional

Color of mean contours.

alphafloat, optional

Alpha of mean contours.

linewidthfloat, optional

Line width of mean contours.