netplotbrain icon indicating copy to clipboard operation
netplotbrain copied to clipboard

Feature Request: Label nodes with ROI name

Open neudorf opened this issue 1 year ago • 10 comments

This looks like a great python alternative to other options (e.g., BrainNet Viewer). One feature that is helpful in BrainNet Viewer is the ability to add a text label to certain nodes in the figure. Is this a feature that could be added (or is this already implemented and I have missed it)?

Thanks so much.

neudorf avatar Jan 04 '24 22:01 neudorf

Hi,

So that feature does not currently exist. But can be added to the list (and can be added the next time a get round to releasing the next version).

Clarification question though: do you want the text on the node itself (very easy to implement), or do you want a line from the node to some empty space with the text (more challenging, but sounds fun)? Or both?

wiheto avatar Jan 05 '24 06:01 wiheto

So to make it clearer, would you rather like the figure on the left or the figure on the right (this one would need a lot more work obviously)

image

Obviously there will also be ways to limit the number of labels so it is not this many.

wiheto avatar Jan 05 '24 08:01 wiheto

I am interested in being able to add ROI labels to plots, especially if they don't overlap with the sphere center or replace the sphere. This is probably more useful when there are only a few nodes, but it still would be a nice addition

diramigo avatar Feb 23 '24 02:02 diramigo

Hi, wondering whether this has been implemented? Would be a great feature!

edhutch1 avatar Jul 25 '24 09:07 edhutch1

They are currently on the way:

https://github.com/wiheto/netplotbrain/pull/68

But I've been on holiday and haven't got around to fixing what went wrong with the tests.

wiheto avatar Aug 04 '24 09:08 wiheto

I also look forward to this feature Sometimes you need text next to each node to explain which node or brain area it is, especially when there are many nodes, I often can't tell which one it is I look forward to the presentation of the diagram on the left. It would be great if the font could be smaller or avoid the circle of the node. Thank you very much for your work.

hasibagen avatar Sep 04 '24 01:09 hasibagen

I will try and merge this within the next week but I need to check why the tests/continuous integration is failing. And I am just swamped at the moment to get round to this.

wiheto avatar Sep 05 '24 06:09 wiheto