-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode support in the method add.text() of mne.viz.brain #12543
Comments
Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴 |
Sorry for the slow reply! This is a bug of PyVista, not MNE-Python. Under the hood we are already calling exactly the import pyvista as pv
from pyvista import examples
mesh = examples.download_st_helens().warp_by_scalar()
cpos = [(575848.0, 5128459.0, 22289.0), (562835.0, 5114981.5, 2294.5), (-0.5, -0.5, 0.7)]
p = pv.Plotter(shape=(1, 2), window_size=[1500, 500])
p.subplot(0, 0)
p.add_mesh(mesh, show_scalar_bar=False)
p.add_text("chinese\u2190中文") # <- CHANGED HERE
p.subplot(0, 1)
specular = 1.0
p.add_mesh(mesh, specular=specular, show_scalar_bar=False)
p.add_text(f'Specular of {specular}')
p.link_views()
p.view_isometric()
p.show(cpos=cpos) I recommend opening a similar issue on PyVista repository. |
Would you please run the following code?
Could you please also add the argument |
Describe the new feature or enhancement
When I run the following command:
brain.add_text(0.1, 0.9, "chinese\u2190中文", color="black", font_size=10)
The added text only shows
chinese
, see belowHowever, I expect the added text to be
chinese <- 中文
. Would you please add this feature?Describe your proposed implementation
I am not a Python expert, but I found that the Python package
PyVista
also has the methodadd_text()
here. Maybe it can offer some thought on how to add this new feature.Describe possible alternatives
None.
Additional context
No response
The text was updated successfully, but these errors were encountered: