Skip to content

Cannot set fontsize with SliderGrid - GLMakie #2377

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

Open
arthur-fyon opened this issue Oct 26, 2022 · 2 comments · May be fixed by #4983
Open

Cannot set fontsize with SliderGrid - GLMakie #2377

arthur-fyon opened this issue Oct 26, 2022 · 2 comments · May be fixed by #4983
Labels
Attributes Plot, Block and Scene Attributes enhancement Feature requests and enhancements User Interface functionality users interface with Widgets Menu, Slider, TextBox, etc

Comments

@arthur-fyon
Copy link

Hello,

By updating my Julia version, I just remarked that labelslidergrid! is deprecated. Thus, I had to use SliderGrid. However, there is no way to increase the fontsize of both the label and the current slider value. I tried the argument textsize such as with Button, but it didn't work. In addition, the documentation does not mention any fontsize tuning.

Making it possible would be super nice.

Thanks for reading me.

Regards,
Arthur

@SimonDanisch
Copy link
Member

@ffreyer ffreyer added enhancement Feature requests and enhancements Attributes Plot, Block and Scene Attributes Widgets Menu, Slider, TextBox, etc User Interface functionality users interface with labels Aug 23, 2024
@pmc4
Copy link

pmc4 commented May 14, 2025

I'll try to implement this once I have time. For now, I have found this solution. Since the labels of SliderGrid are also Label elements at the end, we can change the theme and modify only the fontsize attribute of the Label block with

set_theme!(Label = (fontsize = 25,))

# Write your plotting code here

Change that to the value you want. The problem with this solution is that you cannot control independently the size of the label and the size of the values, since both are Label. Also, if you plan to use other Label in your plot, they'll appear with the new fontsize you've set unless you specifically pass the fontsize attribute to the Label call.

@pmc4 pmc4 linked a pull request May 15, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Attributes Plot, Block and Scene Attributes enhancement Feature requests and enhancements User Interface functionality users interface with Widgets Menu, Slider, TextBox, etc
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

4 participants