pydeseq2.plotting.make_scatter#
- make_scatter(disps, legend_labels, x_val, log=True, save_path=None, **kwargs)#
Create a scatter plot using matplotlib.
Used in
pydeseq2.dds.DeseqDataSet.plot_dispersions().- Parameters:
- disps
list List of ndarrays to plot.
- legend_labels
list List of strings that correspond to plotted targets values for legend.
- x_val
ndarray 1D array to plot (example:
dds.varm['_normed_means']).- log
bool(default:True) Whether or not to log scale features and targets axes (
default=True).- save_path
str|None(default:None) The path where to save the plot. If left None, the plot won’t be saved (
default=None).- **kwargs
Matplotlib keyword arguments for the scatter plot.
- disps
- Return type: