phlower.pl.plot_embedding

phlower.pl.plot_embedding(cluster_list=[], embedding=None, color_palette=['#d60000', '#8c3bff', '#018700', '#00acc6', '#97ff00', '#ff7ed1', '#6b004f', '#ffa52f', '#573b00', '#005659', '#0000dd', '#00fdcf', '#a17569', '#bcb6ff', '#95b577', '#bf03b8', '#645474', '#790000', '#0774d8', '#fdf490', '#004b00', '#8e7900', '#ff7266', '#edb8b8', '#5d7e66', '#9ae4ff', '#eb0077', '#a57bb8', '#5900a3', '#03c600', '#9e4b00', '#9c3b4f', '#cac300', '#708297', '#00af89', '#8287ff', '#5d363b', '#380000', '#fdbfff', '#bde6bf', '#db6d01', '#93b8b5', '#e452ff', '#2f5282', '#c36690', '#54621f', '#c49e72', '#038287', '#69e680', '#802690'], retain_clusters=[], node_size=4, label=True, labelsize=10, labelstyle='text', ax=None, show_legend=True, legend_loc='center left', bbox_to_anchor=(1, 0.5), markerscale=5, facecolor='white', **args)

Parameters

cluster_list: list

cluster labels for each point

embedding: np.ndarray

embeddings, shape should be nx2

color_palette: list

color palette, default is sns.color_palette(cc.glasbey, n_colors=50).as_hex()

retain_clusters: list

which clusters to plot

node_size: int

node size

label: bool

if add labels

labelsize: int

size of labels

labelstyle: str

options: color,text, box. same color as nodes if use color, black if use text, white color with box if use box

ax: matplotlib axis

matplotlib ax

show_legend: bool

if show_legend

legend_loc: str

legend location

bbox_to_anchor: tuple

tune of legend position

markerscale: int

legend markerscale

facecolor: str

plt background

**args:

parameters of ax.scatter