We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current plot uses a cmap where the extreme values are white. For example:
Fix would be to allow passing a vmin, vmax, or cmap to _viewer brain or plot brain, so that it plots like this using cmap="RdBu_r":
_viewer
For example, change the cmap to RdBu_r in _viewer
nltools/nltools/plotting.py
Line 115 in 91822a4
at
Line 135 in 91822a4
like so.
if thresh == 0: thresh = 1e-6 else: if percentile_threshold: thresh = str(thresh) + "%" if isinstance(idx, int): b = brain[idx].to_nifti() else: b = brain.to_nifti() if anatomical: bg_img = anatomical else: bg_img = "MNI152" cut_coords = kwargs.get("cut_coords", [0, 0, 0]) if surface: return view_img_on_surf(b, threshold=thresh, **kwargs) else: return view_img( b, bg_img=bg_img, threshold=thresh, cut_coords=cut_coords, cmap='RdBu_r', **kwargs )```
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current plot uses a cmap where the extreme values are white. For example:
Fix would be to allow passing a vmin, vmax, or cmap to
_viewer
brain or plot brain, so that it plots like this using cmap="RdBu_r":For example, change the cmap to RdBu_r in _viewer
nltools/nltools/plotting.py
Line 115 in 91822a4
at
nltools/nltools/plotting.py
Line 135 in 91822a4
like so.
The text was updated successfully, but these errors were encountered: