Skip to content

Trouble loading on flatmap.plot #11

@milinkim

Description

@milinkim

Dear Diedrichsen Lab,

I've been using the wonderful SUIT toolbox for several years now. Thank you so much!

But after our cluster system updated from Python 7 to Python 3.10, there has been a problem plotting the data.

It reads in using flatmap.vol_to_surf and then when i try loading with flatmap.plot(data, cmap, threshold..., render='matplotlib'),
but I get this error:

ax=_redner_matplotlib(vertices, faces, color, borders,
File ...SUITPy/flatmap.py in __render__matplotlib
polygon =Polygon(certices[f,0:2], True)

TypeError: 'Polygon.init() takes 2 positional argument but 3 were given

When I load the same nii file in matlab SUIT, it plots well. But suddenly it is not working on python.
I've tried my best to figure it out but I couldn't.

Thank you again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions