From 4bd70e13db15c3d07253d234590de7e8819a60ff Mon Sep 17 00:00:00 2001 From: niksirbi Date: Mon, 28 Oct 2024 15:01:35 +0000 Subject: [PATCH] fix typos and linting --- brainglobe_template_builder/plots.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/brainglobe_template_builder/plots.py b/brainglobe_template_builder/plots.py index d215b21..89d8860 100644 --- a/brainglobe_template_builder/plots.py +++ b/brainglobe_template_builder/plots.py @@ -25,7 +25,7 @@ def plot_orthographic( img : np.ndarray Image volume to plot. anat_space : str, optional - Anatomical space of of the image volume according to the Brainglobe + Anatomical space of the image volume according to the Brainglobe definition (origin and order of axes), by default "ASR". show_slices : tuple, optional Which slice to show per dimension. If None (default), show the middle @@ -99,23 +99,24 @@ def plot_grid( ) -> tuple[plt.Figure, np.ndarray]: """Plot image volume as a grid of slices along a given anatomical section. - Image contrast is auto-adjusted to 1-99% of range unless `vmin` and `vmax` are specified - as keyword arguments. + Image contrast is auto-adjusted to 1-99% of range unless `vmin` and `vmax` + are specified as keyword arguments. Parameters ---------- img : np.ndarray Image volume to plot. anat_space : str, optional - Anatomical space of of the image volume according to the Brainglobe + Anatomical space of the image volume according to the Brainglobe definition (origin and order of axes), by default "ASR". section : str, optional Section to show, must be one of "frontal", "horizontal", or "sagittal", by default "frontal". n_slices : int, optional Number of slices to show, by default 12. Slices will be evenly spaced, - starting from the first and ending with the last slice. If a higher value - than the number of slices in the image is chosen, all slices are shown. + starting from the first and ending with the last slice. If a higher + value than the number of slices in the image is chosen, all slices + are shown. save_path : Path, optional Path to save the plot, by default None (no saving). **kwargs