EtienneCmb / visbrain

A multi-purpose GPU-accelerated open-source suite for brain data visualization
http://visbrain.org
Other
241 stars 65 forks source link

Export scene object as eps #42

Open perevo opened 5 years ago

perevo commented 5 years ago

Hi, How to export scene object as a vectorgraph? Like eps or pdf.

best regard. Jianrong

EtienneCmb commented 5 years ago

You can use sc.screenshot('scene.eps'), it should works, but I don't don't think this is going to be vectorgraph

perevo commented 5 years ago

Thanks for the reply. Can I fix the label size in a topoplot?

Jianrong

EtienneCmb commented 5 years ago

By label size you mean the text size of channel names? If so, you can pass chan_size=10. to control it. See the doc of topoplot object

perevo commented 5 years ago

Sorry for the misleading. I mean the size of the channel markers. How to set them as equal?

Jianrong

EtienneCmb commented 5 years ago

oh I see, you mean same size across markers. Indeed, this is not something that is easily accessible. A quick and dirty fix could be something like this :

# define your topoplot
t_obj = TopoObj('topo', data_names, channels=ch_names)
# manually set marker size
t_obj.chan_markers._data['a_size'] = [40] * len(ch_names)