diff --git a/doc/examples/multi_taper_coh.py b/doc/examples/multi_taper_coh.py index 1e938174..c91085ef 100644 --- a/doc/examples/multi_taper_coh.py +++ b/doc/examples/multi_taper_coh.py @@ -152,7 +152,7 @@ """ for i in range(nseq): - for j in range(i): + for j in range(i, nseq): """ diff --git a/nitime/viz.py b/nitime/viz.py index 2d030036..db0ce62c 100644 --- a/nitime/viz.py +++ b/nitime/viz.py @@ -30,7 +30,7 @@ import matplotlib.axis as ax ax.munits = mpl_units -from nitime.utils import triu_indices +from nitime.utils import tril_indices #Some visualization functions require networkx. Import that if possible: try: @@ -272,10 +272,12 @@ def channel_formatter(x, pos=None): # data provided m = in_m.copy() - # Null the upper triangle, so that you don't get the redundant and the + # Null the **lower** triangle, so that you don't get the redundant and the # diagonal values: - idx_null = triu_indices(m.shape[0]) + idx_null = tril_indices(m.shape[0]) m[idx_null] = np.nan + # tranpose the upper triangle to lower + m = m.T # Extract the minimum and maximum values for scaling of the # colormap/colorbar: