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

wxMaxima on Windows (MS Surface) #1966

Open
EKal-aa opened this issue Oct 22, 2024 · 4 comments
Open

wxMaxima on Windows (MS Surface) #1966

EKal-aa opened this issue Oct 22, 2024 · 4 comments

Comments

@EKal-aa
Copy link

EKal-aa commented Oct 22, 2024

When using wxplot2d ... on a MS Surface device (which has a high resolution display), the font size in the plot is very small. The font size should be bigger, perhaps adjustable somewhere in the settings.

@daute
Copy link
Member

daute commented Oct 22, 2024

You can do that, by setting the Gnuplot options via gnuplot_preamble, e.g.

wxplot2d(x,[x,1,10],[gnuplot_preamble,"set tics font \", 30\"; set xlabel font \",20\"; set ylabel font \",20\";"]);

This sets the font size of the numbers (tics font) to 30, of the x and y label to 20.
Best regards, Wolfgang

daute added a commit that referenced this issue Oct 22, 2024
@EKal-aa
Copy link
Author

EKal-aa commented Oct 23, 2024

That helped me, thank you! And i can insert a line in wxmaxima-init.mac to have a font size as a standard setting with set_plot_option.
If I use a bigger number for font size, I get very weird output (as if the font size is 10 times higher than indicated). And this seems to be dependent of the hardware. Font size of 30 works on my Desktop with fullHD resolution. On my Surface Pro 10, the font size of 21 seems to be the highest, which is possible. With font size of 22, the plot is no more visible, see attachment.
Screenshot 2024-10-23 101209

@EKal-aa
Copy link
Author

EKal-aa commented Oct 24, 2024

I tested this (the very big fonts sizes) on the wxMaxima version 22.04.0, which comes with Maxima 5.46.0. Here, it is possible to set large font sizes without the weird output.

@daute
Copy link
Member

daute commented Oct 25, 2024

Thanks for your feedback. This is a Gnuplot issue - or one of the font libraries, they use. Maybe that bug was not present in the older version of Gnuplot, which was incuded in Maxima 5.46.0. It was already reported as: https://sourceforge.net/p/gnuplot/bugs/2611/

But I tried it now with their current release (6.0.1) on Windows - it is still there.

Best regards, Wolfgang

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