Skip to content

Commit

Permalink
Add white colorbar outline when black_bg
Browse files Browse the repository at this point in the history
  • Loading branch information
kfinc committed May 23, 2020
1 parent b84e270 commit b173165
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nilearn/plotting/displays.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,9 +876,12 @@ def _show_colorbar(self, cmap, norm, threshold=None):

self._colorbar_ax.yaxis.tick_left()
tick_color = 'w' if self._black_bg else 'k'
outline_color = 'w' if self._black_bg else 'k'

for tick in self._colorbar_ax.yaxis.get_ticklabels():
tick.set_color(tick_color)
self._colorbar_ax.yaxis.set_tick_params(width=0)
self._cbar.outline.set_edgecolor(outline_color)

def add_edges(self, img, color='r'):
""" Plot the edges of a 3D map in all the views.
Expand Down

0 comments on commit b173165

Please sign in to comment.