malariagen_data.ag3.Ag3.plot_pairwise_average_fst#

Ag3.plot_pairwise_average_fst(fst_df: DataFrame, annotate_se: bool = False, zmin: int | float | None = 0.0, zmax: int | float | None = None, text_auto: bool | str = '.3f', color_continuous_scale: str | List[str] | None = 'gray_r', width: int | None = 700, height: int | None = 600, show: bool = True, renderer: str | None = None, **kwargs)#

Plot a heatmap of pairwise average Fst values.

Parameters#

fst_dfDataFrame

A dataframe of pairwise Fst and standard error values.

annotate_sebool, optional, default: False

If True, show standard error values in the upper triangle of the plot.

zminint or float or None, optional, default: 0.0

The lower end of the range of values that the colormap covers.

zmaxint or float or None, optional

The upper end of the range of values that the colormap covers.

text_autobool or str, optional, default: ‘.3f’

If True or a string, single-channel img values will be displayed as text. A string like ‘.2f’ will be interpreted as a texttemplate numeric formatting directive.

color_continuous_scalestr or list of str or None, optional, default: ‘gray_r’

Colormap used to map scalar data to colors (for a 2D image). This parameter is not used for RGB or RGBA images. If a string is provided, it should be the name of a known color scale, and if a list is provided, it should be a list of CSS-compatible colors.

widthint or None, optional, default: 700

Plot width in pixels (px).

heightint or None, optional, default: 600

Plot height in pixels (px).

showbool, optional, default: True

If true, show the plot. If False, do not show the plot, but return the figure.

rendererstr or None, optional

The name of the renderer to use.

**kwargs

Passed through to px.imshow().