Repository: nilearn/nilearn

Issue:
[DOC] Don't set get_tmaps=True if tmaps aren't used
### Is there an existing issue for this?

- [X] I have searched the existing issues

### Describe your proposed suggestion in detail.

Examples [Second-level fMRI model: true positive proportion in clusters - Nilearn](https://nilearn.github.io/dev/auto_examples/05_glm_second_level/plot_proportion_activated_voxels.html#sphx-glr-auto-examples-05-glm-second-level-plot-proportion-activated-voxels-py) and [Second-level fMRI model: two-sample test, unpaired and paired - Nilearn](https://nilearn.github.io/dev/auto_examples/05_glm_second_level/plot_second_level_two_sample_test.html#sphx-glr-auto-examples-05-glm-second-level-plot-second-level-two-sample-test-py) use `fetch_localizer_contrasts()` with `get_tmaps=True` but tmaps aren't used in the examples. So the default `get_tmaps=False` is fine and should be used.

### List any pages that would be impacted.

[Second-level fMRI model: true positive proportion in clusters - Nilearn](https://nilearn.github.io/dev/auto_examples/05_glm_second_level/plot_proportion_activated_voxels.html#sphx-glr-auto-examples-05-glm-second-level-plot-proportion-activated-voxels-py) 
[Second-level fMRI model: two-sample test, unpaired and paired - Nilearn](https://nilearn.github.io/dev/auto_examples/05_glm_second_level/plot_second_level_two_sample_test.html#sphx-glr-auto-examples-05-glm-second-level-plot-second-level-two-sample-test-py)


Discussion:
@crossmanith thanks for pointing this out. Would you open a pull request to improve the examples?
I've started to create a pull request, but only with one example modified. I'm struggling to amend the commit with the change to the second example. Any hints? I'm doing these tiny modifications directly on github.
Can you open the pull request with the base repo being nilearn/nilearn with branch main and the head repo being crossmanith/nilearn with your branch name that has the changes? You should be able to open it from here: https://github.com/crossmanith/nilearn/pulls

See https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request for more info

Resolving patch:
diff --git a/examples/05_glm_second_level/plot_proportion_activated_voxels.py b/examples/05_glm_second_level/plot_proportion_activated_voxels.py
--- a/examples/05_glm_second_level/plot_proportion_activated_voxels.py
+++ b/examples/05_glm_second_level/plot_proportion_activated_voxels.py
@@ -26,7 +26,6 @@
 data = fetch_localizer_contrasts(
     ["left vs right button press"],
     n_subjects,
-    get_tmaps=True,
     legacy_format=False,
 )
 # %%


Test patch:
diff --git a/examples/05_glm_second_level/plot_second_level_two_sample_test.py b/examples/05_glm_second_level/plot_second_level_two_sample_test.py
--- a/examples/05_glm_second_level/plot_second_level_two_sample_test.py
+++ b/examples/05_glm_second_level/plot_second_level_two_sample_test.py
@@ -39,12 +39,13 @@
 # localizer dataset.
 n_subjects = 16
 sample_vertical = fetch_localizer_contrasts(
-    ["vertical checkerboard"], n_subjects, get_tmaps=True, legacy_format=False
+    ["vertical checkerboard"],
+    n_subjects,
+    legacy_format=False,
 )
 sample_horizontal = fetch_localizer_contrasts(
     ["horizontal checkerboard"],
     n_subjects,
-    get_tmaps=True,
     legacy_format=False,
 )