File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 152
152
"""
153
153
154
154
for i in range (nseq ):
155
- for j in range (i ):
155
+ for j in range (i , nseq ):
156
156
157
157
"""
158
158
Original file line number Diff line number Diff line change 30
30
import matplotlib .axis as ax
31
31
ax .munits = mpl_units
32
32
33
- from nitime .utils import triu_indices
33
+ from nitime .utils import tril_indices
34
34
35
35
#Some visualization functions require networkx. Import that if possible:
36
36
try :
@@ -272,10 +272,12 @@ def channel_formatter(x, pos=None):
272
272
# data provided
273
273
m = in_m .copy ()
274
274
275
- # Null the upper triangle, so that you don't get the redundant and the
275
+ # Null the **lower** triangle, so that you don't get the redundant and the
276
276
# diagonal values:
277
- idx_null = triu_indices (m .shape [0 ])
277
+ idx_null = tril_indices (m .shape [0 ])
278
278
m [idx_null ] = np .nan
279
+ # tranpose the upper triangle to lower
280
+ m = m .T
279
281
280
282
# Extract the minimum and maximum values for scaling of the
281
283
# colormap/colorbar:
You can’t perform that action at this time.
0 commit comments