From 4354e3121fcd2f21c2277379490e3aca17fb19d2 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 21 Dec 2024 22:28:51 +0100 Subject: [PATCH] STY: Apply ruff/Pylint rule PLR0402 PLR0402 Use `from ... import ..` in lieu of alias --- niworkflows/viz/plots.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/niworkflows/viz/plots.py b/niworkflows/viz/plots.py index 3ae21769cf8..fbaa930c712 100644 --- a/niworkflows/viz/plots.py +++ b/niworkflows/viz/plots.py @@ -22,12 +22,11 @@ # """Plotting tools shared across MRIQC and fMRIPrep.""" -import matplotlib.cm as cm import matplotlib.pyplot as plt import nibabel as nb import numpy as np import pandas as pd -from matplotlib import colormaps +from matplotlib import cm, colormaps from matplotlib import gridspec as mgs from matplotlib.colorbar import ColorbarBase from matplotlib.colors import Normalize