From 71e79703b006ffc895b0f4761c5ca38e9364d714 Mon Sep 17 00:00:00 2001
From: didihou <didi.hou@rwth-aachen.de>
Date: Thu, 28 Mar 2024 12:53:44 +0100
Subject: [PATCH] fix the problem of cortical areas order in fc plot

---
 figures/MAM2EBRAINS/M2E_visualize_fc.py | 12 ++++++++----
 multi-area-model.ipynb                  |  9 ---------
 2 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/figures/MAM2EBRAINS/M2E_visualize_fc.py b/figures/MAM2EBRAINS/M2E_visualize_fc.py
index 749144e..089f24f 100644
--- a/figures/MAM2EBRAINS/M2E_visualize_fc.py
+++ b/figures/MAM2EBRAINS/M2E_visualize_fc.py
@@ -99,13 +99,13 @@ def visualize_fc(M, data_path):
     """
     Figure layout
     """
-    fig = pl.figure(figsize=(10, 4))
+    fig = pl.figure(figsize=(9, 4))
     fig.suptitle('Simulated functional connectivity (left) and FC of macaque resting-state fMRI', 
-                 fontsize=17, x=0.5, y=1.1)
+                 fontsize=17, x=0.53, y=1.15)
     axes = {}
     gs1 = gridspec.GridSpec(1, 2)
     gs1.update(left=0.05, right=0.95, top=1,
-               bottom=0, wspace=0.3, hspace=0)
+               bottom=0.3, wspace=0.3, hspace=0)
     axes['A'] = pl.subplot(gs1[:1, :1])
     axes['B'] = pl.subplot(gs1[:1, 1:2])
 
@@ -188,9 +188,13 @@ def visualize_fc(M, data_path):
     ax = axes['B']
     matrix_plot(M, ax, zero_diagonal(exp_FC),
                 part_sim_index, 1., pos=(0, 0))
-
+        
     areas = np.array(M.area_list)[part_sim_index]
     area_string = areas[0]
     for area in areas[1:]:
         area_string += ' '
         area_string += area
+
+    pl.text(0.00, 0.15, r'Order of cortical areas:', transform=fig.transFigure, fontsize=13, fontweight='bold')
+    pl.text(0.00, 0.1, area_string,
+        transform=fig.transFigure, fontsize=11)
diff --git a/multi-area-model.ipynb b/multi-area-model.ipynb
index 66da4f1..b08687c 100644
--- a/multi-area-model.ipynb
+++ b/multi-area-model.ipynb
@@ -657,15 +657,6 @@
     "Comparison of area-level functional connectivity (FC) between the down-scaled MAM and macaque experimental data. (A) Simulated FC measured by the zero-time-lag correlation coefficient of synaptic input currents. (B) FC of macaque resting-state fMRI (see Materials and methods)."
    ]
   },
-  {
-   "cell_type": "markdown",
-   "id": "678741b2-6dfa-4f1d-b4d8-ccd84f104767",
-   "metadata": {},
-   "source": [
-    "**Order of cortical areas**: <br>\n",
-    "V1, V2, VP, V3, V3A, MT, V4t, V4, VOT, MSTd, PIP, PO, DP, MIP, MDP, VIP, LIP, PITv, PITd, MSTl, CITv, CITd, FEF, TF, AITv, FST, 7a, STPp, STPa, 46, AITd, TH"
-   ]
-  },
   {
    "cell_type": "code",
    "execution_count": null,
-- 
GitLab