Skip to content

Commit

Permalink
minor style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wiheto committed Apr 12, 2022
1 parent 15eb8ea commit 0cc771e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions netplotbrain/plotting/plot_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ def _plot_template_style_glass(ax, data, **kwargs):
templatecolor= kwargs.get('templatecolor')

# perform segmentation.
segments = segmentation.slic(data, template_glass_nsegments, compactness=template_glass_compactness, enforce_connectivity=False, start_label=1, channel_axis=None)
segments = segmentation.slic(data, template_glass_nsegments,
compactness=template_glass_compactness,
enforce_connectivity=False,
start_label=1,
channel_axis=None)
borders = segmentation.find_boundaries(segments, mode='thick')

# Scale the alpha of the border values based on template intensity
Expand Down Expand Up @@ -133,7 +137,7 @@ def _select_single_hemisphere_template(data, hemisphere):
return data


def _plot_template(ax, style='filled', template='MNI152NLin2009cAsym',
def _plot_template(ax, style='filled', template='MNI152NLin2009cAsym',
voxsize=None, azim=0, elev=0, hemisphere='both', **kwargs):
if isinstance(template, str):
if not os.path.exists(template):
Expand Down

0 comments on commit 0cc771e

Please sign in to comment.