I'm having a little issue with the ROI recoloring, specifically when defining my own ROI
I'm loading in what are essentially nifti masks, and creating appropriate labels, index, roi_to_color maps, but when I call
preview(), I get extremely dark colors, and it looks like the interior of the ROI is being painted (see these links https://ibb.co/PwxyXdC, https://ibb.co/XCXSWxD, https://ibb.co/GcyCtdF)
Incidentally, it does not matter if I allow the Brain GUI to select colors for me, the painting is similarly dark
I've tried the exact same approach with the default Brodmann areas ROI, and the painting works perfectly
any ideas what I might need to change to make the colors visible?
# define the roi object r_obj = RoiObj(...) # select your roi's r_obj.select_roi(...) # invert normals r_obj.mesh._normals *= -1
In vispy, text object is declared like below.
def __init__(self, text=None, color='black', bold=False, italic=False, face='OpenSans', font_size=12, pos=[0, 0, 0], rotation=0., anchor_x='center', anchor_y='center', method='cpu', font_manager=None):
I can see the bold, italic, and font_size in visbrain, but is there any connection to 'face' which might allow the font change in the canvas using system font?
io.write_image.write_fig_canvasfunction so as to be able to export canvas as SVG files? It would be convenient to make figures to be able to "screenshot" the GUI in vectorial format
Hi there. I am trying to use visbrain to read in .rec files. I import the following function
from visbrain.io.read_sleep import read_edf
I can't import this becuase of a QT error
qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
I am running this code in a pyspark script, all I need to do is read the data, I don't need a GUI. Any suggestions?
--useroption or check the permissions. Could someone please advise ?