If you just want non interactive visualization, have a look at:
http://nipy.sourceforge.net/nipy/stable/neurospin/viz.html
The documentation is a bit old, so just replace 'neurospin' by 'labs'
everywhere, as we have changed the import paths.
If you cannot depend on nipy, which is not released yet, just look at the
source code of the corresponding function to find some inspiration.
If you want interactive displays in 2D, I am afraid but I think that we
do not have anything handy.
HTH,
Ga�l
$> ls install/lib/python2.6/site-packages/nipy/labs
__init__.py bindings/ glm/ mask.py setup.py spatial_models/ statistical_mapping.pyc utils/ viz.pyc viz3d.pyc
__init__.pyc datasets/ group/ mask.pyc setup.pyc statistical_mapping.py tests/ viz.py viz3d.py viz_tools
what git snapshot your are using? (output of git describe should suffice)
how do you install it?
are you running any Debian-based distribution? (then just add
http://neuro.debian.net/ repository and sudo apt-get install python-nipy)
> Does anyone have experience with matplotlib and neuroimaging?
Well... quite a broad question ;-) probably nearly everyone on this list
has experience with neuroimaging and I bet everyone has experience with
matplotlib ;-)
On Mon, 25 Jul 2011, Robert L Cloud wrote:
> Strangely enough, in nipy 0.1.2.dev(gotten through git) there is no
> nipy.labs available
> I browse the sources and find the directory there, but it was not
> apparently installed.
> Any suggestions?
> Secondly, perhaps I could interact with the slices by creating a
> matplotlib window in my application?
> Does anyone have experience with matplotlib and neuroimaging?
> Any other recommendations?
--
=------------------------------------------------------------------=
Keep in touch www.onerussian.com
Yaroslav Halchenko www.ohloh.net/accounts/yarikoptic
import module
doesn't necessarily imports all submodules, e.g. module.submodule1 etc
so in this case you just need
import nipy.labs.viz
explicitly if you want to use it
On Mon, 25 Jul 2011, Robert L Cloud wrote:
> In [3]: nipy.labs.viz
> ---------------------------------------------------------------------------
> AttributeError Traceback (most recent call
> last)
> /home/rcloud/<ipython-input-3-24d4250e1784> in <module>()
> ----> 1 nipy.labs.viz
> AttributeError: 'module' object has no attribute 'viz'
> and I can't get past that.
> Thanks for the replies.
> Robert