Skip to content

Commit

Permalink
More verbose axis labels for connectivity matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ntolley authored and jasmainak committed May 19, 2021
1 parent 2215c79 commit cf081f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hnn_core/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,11 @@ def plot_connectivity_matrix(conn, ax=None, show=True):
connectivity_matrix[src_idx, :] = target_indeces

ax.imshow(connectivity_matrix, cmap='Greys', interpolation='none')
ax.set_xlabel(f'target gids ({target_range[0]}-{target_range[-1]})')
ax.set_xlabel(f"{conn['target_type']} target gids "
f"({target_range[0]}-{target_range[-1]})")
ax.set_xticklabels(list())
ax.set_ylabel(f'source gids ({src_range[0]}-{src_range[-1]})')
ax.set_ylabel(f"{conn['src_type']} source gids "
f"({src_range[0]}-{src_range[-1]})")
ax.set_yticklabels(list())
ax.set_title(f"{conn['src_type']} -> {conn['target_type']} "
f"({conn['loc']}, {conn['receptor']})")
Expand Down

0 comments on commit cf081f9

Please sign in to comment.