from matplotlib import pyplot as plt
from nilearn import plotting
// Display the covariance
plt.figure(figsize=(8, 8))
// The covariance can be found at estimator.covariance_
plotting.plot_matrix(estimator.covariance_, labels=labels,
ax=plt.gca(), vmax=1, vmin=-1)
After Change
// --------------------------------------
// we negate it to get partial correlations
plotting.plot_matrix(-estimator.precision_, labels=labels,
figure=(9, 7), vmax=1, vmin=-1,
title="Sparse inverse covariance")
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////