mwaskom/moss

use mosaic to plot one image, no overlay

maartenmennes opened this issue · 5 comments

Hi Michael,

I was wondering whether mosaic would allow plotting one image only, not in an overlay setting, yet with the ability to control the color range etc.

I was playing around a bit, but could not get it to what I wanted.

image

Second request: is there a possibility to switch from neurological to radiological convention?

Thanks!
Maarten

I was wondering whether mosaic would allow plotting one image only, not in an overlay setting, yet with the ability to control the color range etc.

Yes you just have to pass the image as both the anat and stat

Second request: is there a possibility to switch from neurological to radiological convention?

No, orientation stuff is a pain in the ass and Mosaic is meant to just be for quickly checking out how things look. The Nipy package has a wider and more flexible set of routines for plotting though if you need that sort of thing.

Excellent, thanks for the pointers! It worked out (I tried that option
before, but was at that point still fighting with an older seaborn install
which lacked the required cubehelix_palette)

as a follow-up I can't seem to figure out how to use savefig in combination
with plot_overlay? must be my complete ignorance of how classes work...

On Wed, Dec 10, 2014 at 12:25 AM, Michael Waskom notifications@github.com
wrote:

I was wondering whether mosaic would allow plotting one image only, not in
an overlay setting, yet with the ability to control the color range etc.

Yes you just have to pass the image as both the anat and stat

Second request: is there a possibility to switch from neurological to
radiological convention?

No, orientation stuff is a pain in the ass and Mosaic is meant to just be
for quickly checking out how things look. The Nipy package has a wider and
more flexible set of routines for plotting though if you need that sort of
thing.


Reply to this email directly or view it on GitHub
#16 (comment).

Maarten Mennes, Ph.D.
Post-Doctoral Researcher
Donders Institute for Brain, Cognition and Behaviour
Dept. of Cognitive Neuroscience
Radboud University Nijmegen Medical Centre
Nijmegen
The Netherlands

Google Scholar Author Link
http://scholar.google.com/citations?user=pLlSTVgAAAAJ&hl=en

just do like

m = Mosiac(...)
m.plot_overlay(...)
m.savefig()

(or maybe m.fig.savefig I forget if there's a method on the object, but it keeps a reference to the figure it's plotting on)

Got it (it's late/early here), thanks for the instant customer support!

Cheers,
Maarten

On Wed, Dec 10, 2014 at 12:51 AM, Michael Waskom notifications@github.com
wrote:

just do like

m = Mosiac(...)
m.plot_overlay(...)
m.savefig()

(or maybe m.fig.savefig I forget if there's a method on the object, but
it keeps a reference to the figure it's plotting on)


Reply to this email directly or view it on GitHub
#16 (comment).

Maarten Mennes, Ph.D.
Post-Doctoral Researcher
Donders Institute for Brain, Cognition and Behaviour
Dept. of Cognitive Neuroscience
Radboud University Nijmegen Medical Centre
Nijmegen
The Netherlands

Google Scholar Author Link
http://scholar.google.com/citations?user=pLlSTVgAAAAJ&hl=en

👍