We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8065c45 commit 67d13deCopy full SHA for 67d13de
src/torchio/visualization.py
@@ -146,8 +146,10 @@ def plot_volume(
146
]
147
)
148
p1, p2 = np.percentile(displayed_data, percentiles)
149
- imshow_kwargs['vmin'] = p1
150
- imshow_kwargs['vmax'] = p2
+ if 'vmin' not in imshow_kwargs:
+ imshow_kwargs['vmin'] = p1
151
+ if 'vmax' not in imshow_kwargs:
152
+ imshow_kwargs['vmax'] = p2
153
154
spacing_r, spacing_a, spacing_s = image.spacing
155
sag_axis, cor_axis, axi_axis = axes
0 commit comments