Permalink
Browse files

BF - diagnostics update after edits, nibabel switch

  • Loading branch information...
matthew-brett committed Apr 18, 2011
1 parent 560bdb0 commit 4c378885f0953a765e7029c027307356a5f4e35f
Showing with 3 additions and 3 deletions.
  1. +2 −2 nipy/algorithms/diagnostics/tsdiffplot.py
  2. +1 −1 scripts/nipy_diagnose
@@ -20,13 +20,13 @@ def plot_tsdiffs(results, axes=None):
:func:`nipy.algorithms.diagnostics.time_slice_diff`
'''
+ import matplotlib.pyplot as plt
T = len(results['volume_means'])
S = results['slice_mean_diff2'].shape[1]
mean_means = np.mean(results['volume_means'])
scaled_slice_diff = results['slice_mean_diff2'] / mean_means
if axes is None:
- import matplotlib.pyplot as plt
n_plots = 4
fig = plt.figure()
fig.set_size_inches([10,10])
@@ -51,7 +51,7 @@ def xmax_labels(ax, val, xlabel, ylabel):
# Use HSV in order to code the slices from bottom to top:
ax.scatter(X.T.ravel(),scaled_slice_diff.ravel(),
- c=Y.T.ravel(),cmap=cm.hsv,
+ c=Y.T.ravel(),cmap=plt.cm.hsv,
alpha=0.2)
xmax_labels(ax, T-1,
View
@@ -37,7 +37,7 @@ import nipy
from nipy.externals.argparse import ArgumentParser, \
RawDescriptionHelpFormatter
import nipy.algorithms.diagnostics.screens as nads
-from nipy.io.imageformats.filename_parser import splitext_addext
+from nibabel.filename_parser import splitext_addext
import matplotlib
matplotlib.use('Agg')

0 comments on commit 4c37888

Please sign in to comment.