Skip to content

Commit

Permalink
Added label caps and updated png saving location to regr directory
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorVeraFrazao committed Dec 12, 2023
1 parent bb8173b commit cd0c5ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/3.3_fMRIActivity/plotfMRI_mat.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import seaborn as sns


def matrixMaker(matData):
def matrixMaker(matData, output_path):
unCorrmatrix = matData['matrix']
labels = matData['label']

Expand Down Expand Up @@ -48,8 +48,9 @@ def matrixMaker(matData):
rotation_mode="anchor")

ax.set_title("rsfMRI Correlation between ARA regions")
plt.show()

output_file = os.path.join(output_path, "CorrMatrixHM")
plt.savefig(output_file)
plt.close
return corrMatrix


Expand All @@ -71,4 +72,4 @@ def matrixMaker(matData):
matData = sio.loadmat(inputPath)

# generate Matrix
matrixMaker(matData)
matrixMaker(matData, os.path.dirname(inputPath))

0 comments on commit cd0c5ad

Please sign in to comment.