Skip to content

Commit

Permalink
Update viz_scrna.py
Browse files Browse the repository at this point in the history
Remove custom ticklabels on density video. Fix Issue #7.
  • Loading branch information
atong01 authored Oct 15, 2020
1 parent 21d11e3 commit ca8ac7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TrajectoryNet/lib/viz_scrna.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,10 @@ def save_trajectory_density(prior_logdensity, model, data_samples, savedir, ntim
cmap=plt.cm.Spectral,
orientation='horizontal')
cb.set_ticks(np.linspace(0,1,4))
cb.set_ticklabels(['48HR', 'Day 12', 'Day 18', 'Day 30'])
#cb.set_ticklabels(['48HR', 'Day 12', 'Day 18', 'Day 30'])
#cb.set_ticklabels(['E12.5', 'E14.5', 'E16.0', 'E17.5'])
#cb.set_ticks(np.linspace(0,1,5))
#cb.set_ticklabels(np.arange(5))
cb.set_ticklabels(np.arange(len(end_times))
ax.axvline(t / grid_z_traj.shape[0], c='k', linewidth=15)
ax.set_title('Time')

Expand Down

0 comments on commit ca8ac7b

Please sign in to comment.