nipy / PySurfer

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

ENH montage: add 2d grid option #84

Closed christianbrodbeck closed 10 years ago

christianbrodbeck commented 10 years ago

First step following up on discussion in https://github.com/nipy/PySurfer/pull/79 to add to make_montage the capability to create 2d grids

import surfer

subject_id = 'fsaverage'
std_args = [subject_id, 'lh', 'inflated']
small_brain = dict(size=100, width=500, height=500)

brain = surfer.Brain(*std_args, config_opts=small_brain)

brain.save_montage("test_2d.png", [['l', 'v'], ['m', 'f']])

test_2d

agramfort commented 10 years ago

LGTM :)

mwaskom commented 10 years ago

I dig it, but I'm confused by the small brain kwargs. I thought size was shorthand for width and height?

christianbrodbeck commented 10 years ago

Oh I just took them from the meg example, but size didn't seem to make the figure smaller

Christian

On Jan 20, 2014, at 12:53 PM, Michael Waskom notifications@github.com wrote:

I dig it, but I'm confused by the small brain kwargs. I thought size was shorthand for width and height?

— Reply to this email directly or view it on GitHub.