I’m using Visbrain for visualization of cortical surface plots, and generating images using the screenshot function in BrainObj (no GUI is needed). Everything is working fine when I run it on my local computer. However, I want to be able to run my scripts on a remote server, but when I try this, I get an error when trying to import BrainObj. I think this is related to PyQt and I get the error message:
"qt.qpa.xcb: could not connect to display :23.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb."
I there a way to run Visbrain in a headless mode?
Hi @lassemadsen ,
For headless mode, you can get inspiration from the travis file used to run visbrain on a server especially this line
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 ?