seaborn jointplot fails if passing multiple positional arguments
- Dominant language
- Python
- Stars
- 50
- Forks
- 17
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 3
Description
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
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by searching the repository for the shown sns.jointplot call and inspect how its positional arguments are used. Update the call to match the keyword-only argument requirements of recent seaborn versions, then run the relevant plotting or analysis checks and confirm the CITE-seq QC plot is generated without the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100