nipy / PySurfer

Cortical neuroimaging visualization in Python
https://pysurfer.github.io/
BSD 3-Clause "New" or "Revised" License
244 stars 98 forks source link

Curvature displayed incorrectly when not using builtin surfaces with hemi="split" #99

Closed mwaskom closed 10 years ago

mwaskom commented 10 years ago

This is kind of weird. I usually plot on a partially-inflated surface. But I was playing around with hemi="split" today, and found that when I do that the right hemisphere is plotted with the left hemisphere curvature file:

screenshot 2014-03-27 15 18 59

This doesn't happen using this surface in a single window, or when using e.g. inflated or pial.

Any idea what could be causing this @Eric89GXL ? I didn't see the surfaces hardcoded anywhere in viz.py, but maybe I missed it.

larsoner commented 10 years ago

I have never seen this. I can take a look on Monday if you don't beat me to it.

mwaskom commented 10 years ago

I'll poke around some more, but I'm not sure what might be going on. If you want to test, you can grab the surface files from here: [lh | rh]

larsoner commented 10 years ago

I can't reproduce locally on current master. This is what I get:

from surfer import Brain
b = Brain('fsaverage', 'split', 'semi7', views=['lat', 'med'])
b.save_image('test.png')

test

mwaskom commented 10 years ago

Huh, ok thanks for checking. I'll see if maybe I'm using an older version when I get to lab.

mwaskom commented 10 years ago

Indeed, pulling from master fixed it. Good news I guess!