squidpy.pl.var_by_distance

squidpy.pl.var_by_distance(adata, var, anchor_key, design_matrix_key='design_matrix', stack_vars=False, covariate=None, order=5, show_scatter=True, color=None, line_palette=None, scatter_palette='viridis', dpi=None, figsize=None, save=None, title=None, axis_label=None, return_ax=None, regplot_kwargs=mappingproxy({}), scatterplot_kwargs=mappingproxy({}))[source]

Plot a variable using a smooth regression line with increasing distance to an anchor point.

Parameters:
Return type:

Axes | None

Returns:

: Nothing, just plots the figure and optionally saves the plot.