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: Brett Green
Subject: Re: Scaling Fonts/Icons on High DPI Machine
Date: Thu, 9 Apr 2020 17:13:16 -0400


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]