Skip to content
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

Is there a way to manipulate font of channel labels? #65

Open
vladdez opened this issue Nov 20, 2024 · 2 comments
Open

Is there a way to manipulate font of channel labels? #65

vladdez opened this issue Nov 20, 2024 · 2 comments

Comments

@vladdez
Copy link
Contributor

vladdez commented Nov 20, 2024

Currently on some images channel labels merge into background. Wound be nice to be able to change their color, size, boldness etc.

@palday
Copy link
Collaborator

palday commented Nov 20, 2024

You can use Makie Themes and specify various fonts.

using CairoMakie, TopoPlots

data, positions = TopoPlots.example_data()

labels = ["s$i" for i in 1:size(data, 1)]

with_theme(Theme(; fontsize=25, fonts=(; regular="Courier New"))) do
       TopoPlots.eeg_topoplot(data[:, 340, 1]; labels, label_text=true, positions, axis=(aspect=DataAspect(),))
end

Image

@vladdez
Copy link
Contributor Author

vladdez commented Nov 21, 2024

Great feature! Thank you very much! I guess putting this into documentation would be quite helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants