HF RL Explorer

ENH Refactor nilearn.plotting : extract common code

ENH Refactor nilearn.plotting : extract common code: a task in life-science-SWE1.0 (Harbor dataset). Title: ENH Refactor nilearn.plotting : extract common code

The task

**Title:** [ENH] Refactor `nilearn.plotting`: extract common code

Part of scalingX/life-science-SWE1.0.