Skip to content

Commit

Permalink
Minor plot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu Setty committed Aug 22, 2019
1 parent ad3c378 commit 73aa8fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/palantir/plot.py
Expand Up @@ -258,8 +258,8 @@ def plot_gene_expression(data, tsne, genes, plot_scale=False,
for g, ax in zip(genes, fig): for g, ax in zip(genes, fig):
# Data # Data
c = data.loc[cells, g] c = data.loc[cells, g]
vmin = np.percentile(c, percentile) vmin = np.percentile(c[~np.isnan(c)], percentile)
vmax = np.percentile(c, 100 - percentile) vmax = np.percentile(c[~np.isnan(c)], 100 - percentile)


ax.scatter(tsne['x'], tsne['y'], s=3, color='lightgrey') ax.scatter(tsne['x'], tsne['y'], s=3, color='lightgrey')
ax.scatter(tsne.loc[cells, 'x'], tsne.loc[cells, 'y'], s=3, ax.scatter(tsne.loc[cells, 'x'], tsne.loc[cells, 'y'], s=3,
Expand Down

0 comments on commit 73aa8fd

Please sign in to comment.