help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scaling Fonts/Icons on High DPI Machine


From: Zach Runzo
Subject: Re: Scaling Fonts/Icons on High DPI Machine
Date: Thu, 9 Apr 2020 23:01:18 -0500

Thanks for the help.  Ended up doing some more research in looking for how to get to the octaverc file.  Ended up stumbling upon some better key words for my search.  Check out this website if anyone has a similar issue. This seemed to work

https://blogs.windows.com/windowsexperience/2017/01/09/announcing-windows-10-insider-preview-build-15002-pc/#B4p617eIRYORoHM1.97 

Scroll down to the bold title Improved high-DPI support for desktop apps 

Thanks for the help,
Zach

On Thu, Apr 9, 2020 at 4:13 PM Brett Green <address@hidden> wrote:

On Thu, Apr 9, 2020 at 5:11 PM Brett Green <address@hidden> wrote:
On Thu, Apr 9, 2020 at 4:49 PM Zach Runzo <address@hidden> wrote:
Hello again,

I am using a Lenovo Yoga C940.  I'm running windows 10 and my display is the recommended 3840x2160.  My question regards the icons in the GUI display as well as the axis label and titles on figures.  They extremely small and too the point of almost not visible.  I changed the toolbar icons settings to large but that still didn't seem to help much.  I couldn't find any other options to adjust those parameters.  On some matlab forums, there are some posts to account for High DPI with an option of "Override high DPI scaling behavior, scalling performed by:" Is there anything similar to that that would help my situation?

Pictures of my display are attached. Thanks for the help,
Zach


For the plot elements, you can change size with calls like this:

close all
figure(1)
ha = axes();
hp = plot((1:1:5)+3*rand(1,5))
xlabel("x axis")
title("Hello there")
set(ha,"fontsize",30)
set(hp,"linewidth",10)
set(hp,"marker","o")
set(hp,"markersize",10)

Try different numbers until you find a size that works for you. Here are more complete lists of axis properties and line properties. The former are used for the labels and the latter for the plotted data.

I hope someone else can offer suggestions for the GUI icons.

Addendum: to make the changes more automatic, you can also change the default by adding e.g.

set(0,"defaultaxesfontsize",20)

to your octaverc file, which is run every time Octave is started.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]