Skip to content

Commit

Permalink
🎨 Drawing 3D plot keeping the original colours
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlitnightly committed Jun 3, 2024
1 parent 3413105 commit 9884ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scSLAT/viz/multi_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __init__(self,adatas:List[AnnData],
self.loc_list = []
self.anno_list = []
for adata in adatas:
loc = adata.obsm[spatial_key]
loc = adata.obsm[spatial_key].copy()
if scale_coordinate:
for i in range(2):
loc[:,i] = (loc[:,i]-np.min(loc[:,i]))/(np.max(loc[:,i])-np.min(loc[:,i]))
Expand Down

0 comments on commit 9884ef0

Please sign in to comment.