Skip to content

Commit

Permalink
Remove minor ticks from overlays (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-l-kong authored Feb 16, 2023
1 parent ac92acb commit d536fde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ark/utils/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ def plot_pixel_cell_cluster_overlay(img_xr, fovs, cluster_id_to_name_path, metac
)
cbar.ax.set_yticklabels(['Empty'] + list(metacluster_id_to_name['mc_name'].values))

# explicitly turn off intermediate minor ticks
for mt in cbar.ax.yaxis.get_minor_ticks():
mt.set_visible(False)

# save if specified
if save_dir:
misc_utils.save_figure(save_dir, f'{fov}.png')
Expand Down

0 comments on commit d536fde

Please sign in to comment.