Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8752629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:16:20+00:00 2026-06-13T13:16:20+00:00

I recently had to re-install my operating system (Ubuntu). The only thing I did

  • 0

I recently had to re-install my operating system (Ubuntu). The only thing I did differently is that I installed Matlab on a separate partition, not the main Ubuntu partition. After re-installing, the fonts in my plots are no longer configurable. For example, if I ask the title font to be bold, it doesn’t happen. I ran the sample code below on my computer and then on my colleague’s computer and the 2 results are attached. This cannot be a problem with the code; rather in the settings of Matlab. Could somebody please tell me what settings I need to change? Thanks in advance for your help.

Regards,

Sameet.

x1=-pi:.1:pi;
x2=-pi:pi/10:pi;
y1=sin(x1);
y2=tan(sin(x2)) - sin(tan(x2));
[AX,H1,H2]=plotyy(x1,y1,x2,y2);
xlabel ('Time (hh:mm)');
ylabel (AX(1), 'Plot1');
ylabel (AX(2), 'Plot2');
axes(AX(2))
set(H1,'linestyle','none','marker','.');
set(H2,'linestyle','none','marker','.');
title('Plot Title','FontWeight','bold');
set(gcf, 'Visible', 'off');
[legh, objh] = legend([H1 H2],'Plot1', 'Plot2','location','Best');
set(legend,'FontSize',8); 
print -dpng Trial.png;

Bad image: http://imageshack.us/photo/my-images/708/trial1u.png/

Good image: http://imageshack.us/photo/my-images/87/trial2.png/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:16:21+00:00Added an answer on June 13, 2026 at 1:16 pm

    I think the problem is not in the fonts but in NVIDIA’s DPI settings. From this link about How to fix MATLAB small figures and small fonts in Ubuntu linux:

    In order to set your display DPI setting, you will need to add the following lines to your xorg.conf file in the “Device” section:

    Option "UseEdidDpi"   "false"
    Option "Dpi"          "92 x 92"
    

    If you are new to linux, you can accomplish this with the following procedure:

    • Launch a terminal window by going to Applications -> Accessories -> Terminal
    • type this and press Enter: sudo gedit /etc/X11/xorg.conf
    • add the above 2 lines in the “Device” section in the file
    • Save, restart your computer

    If this is not the case, try to follow this thread.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently had to reinstall my os - a full clean install. I did
I recently had to re-install Glassfish 3.1.2 from scratch and I found myself spending
Recently I had to install a Java application for a client using Tomcat6. The
I've recently had to re-install all my SDKs etc. on my new HDD, and
I am an app developer, and I recently had to re-install windows, so I
I've recently had to uninstall/re-install my .NET Framework 4 after finding my current installation
I recently did a fresh install of PhoneGap 2.0 and so far I've managed
Summary I recently had a conversation with the creator of a framework that one
Until now, my project had only .cpp files that were compiled into different binaries
I've recently set up a new system and wanted to install Padre to check

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.