Skip to content

Commit

Permalink
Merge pull request #215 from poldracklab/chrisfilo-patch-1
Browse files Browse the repository at this point in the history
Thinner lines in tissue segmentation
  • Loading branch information
chrisgorgo authored Dec 21, 2017
2 parents d8d13c3 + bcc9bea commit e486df0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions niworkflows/viz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,9 @@ def _plot_anat_with_contours(image, segs=None, compress='auto',
plot_params['levels'] = np.atleast_1d(
plot_params.get('levels', 0.5)).tolist()

plot_params['linewidths'] = 0.5
for i in reversed(range(nsegs)):
plot_params['colors'] = [colors[i]]
plot_params['linewidths'] = 0.8 if i > 0 else 1.5
plot_params['alpha'] = 1 if i > 0 else 0.8
display.add_contours(segs[i], **plot_params)

svg = extract_svg(display, compress=compress)
Expand Down

0 comments on commit e486df0

Please sign in to comment.