Skip to content

seaborn jointplot fails if passing multiple positional arguments #369

@bhoellbacher

Description

@bhoellbacher

The more recent versions of seaborn require arguments to be passed in through keywords.

TypeError                                 Traceback (most recent call last)
Cell In[38], line 19
     17 percent_top = (int(round(0.01*n_prots, 0)) if int(round(0.01*n_prots, 0)) >= 1 else 1, int(round(0.1*n_prots, 0)), int(round(0.25*n_prots, 0)))
     18 qc_adata = sc.pp.calculate_qc_metrics(adata_prot, percent_top=percent_top, var_type="antibodies", inplace=False)
---> 19 fig = sns.jointplot("log1p_total_counts", "n_antibodies_by_counts", qc_adata[0], kind="hex", norm=mpl.colors.LogNorm())
     20 fig.savefig(os.path.join(results_folder_citeseq, 'citeseq', 'figures', 'CITESEQ_QC_plot.png'))
     22 #generate overview of n_counts

TypeError: jointplot() takes from 0 to 1 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions