Skip to content

Commit

Permalink
fix typos and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
niksirbi committed Oct 28, 2024
1 parent 99a479a commit 4bd70e1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions brainglobe_template_builder/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4bd70e1

Please sign in to comment.