Skip to content

Commit

Permalink
Update src/scanpy/plotting/_anndata.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ilan Gold <[email protected]>
  • Loading branch information
flying-sheep and ilan-gold authored Oct 21, 2024
1 parent e101fbf commit 868d017
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scanpy/plotting/_anndata.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ def scatter(
if _check_if_annotations(adata, "obs", x=x, y=y, colors=color, use_raw=use_raw):
return _scatter_obs(**args)
if _check_if_annotations(adata, "var", x=x, y=y, colors=color, use_raw=use_raw):
args_t = args.copy()
args_t["adata"] = adata.T
args_t = { **args, "adata": adata.T }
axs = _scatter_obs(**args_t)
# store .uns annotations that were added to the new adata object
adata.uns = args_t["adata"].uns
Expand Down

0 comments on commit 868d017

Please sign in to comment.