diff --git a/doc/whats_new.rst b/doc/whats_new.rst index a96d2dd40f..0d568d8502 100644 --- a/doc/whats_new.rst +++ b/doc/whats_new.rst @@ -62,6 +62,9 @@ Changes colormap. These arguments were already accepted in `kwargs` but not documented before. +- :func:`nilearn.plotting.view_connectome` now converts NaNs in the adjacency + matrix to 0. + Fixes ----- diff --git a/nilearn/plotting/html_connectome.py b/nilearn/plotting/html_connectome.py index 66ffe6ba2d..559ef019f2 100644 --- a/nilearn/plotting/html_connectome.py +++ b/nilearn/plotting/html_connectome.py @@ -31,7 +31,7 @@ def _get_connectome(adjacency_matrix, coords, threshold=None, marker_size=None, cmap=cm.cold_hot, symmetric_cmap=True): connectome = {} coords = np.asarray(coords, dtype='