Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • All text (titles, axes labels, legends, etc) displaying improperly in all graphs

    For every graph I create in Stata, all text (titles, axes labels, legends labels, etc) are displayed improperly. Specifically, despite what scheme I use or the size I specify within the code, all text is the same size, regardless if it the title or axis label. The text also often appears off center or does not fit within the legend box. It is not an issue with my code, as I asked a colleague to run my exact same .do file and their output was appropriate. This even occurs when I run the example code from help files. For example, I run the following code from the -line- help file:

    Code:
    sysuse uslifeexp, clear
    Code:
    gen diff = le_wm - le_bm
    Code:
    label var diff "difference"
    Code:
    line le_wm year, yaxis(1 2) xaxis(1 2) || line le_bm year || line diff year || lfit diff year ||, ///
    ylabel(0(5)20, axis(2) gmin angle(horizontal)) ylabel(0 20(10)80, gmax angle(horizontal)) ///
    ytitle("", axis(2)) xlabel(1918, axis(2)) xtitle("", axis(2)) ylabel(, axis(2) grid) ///
    ytitle("Life expectancy at birth (years)") title("White and black life expectancy") ///
    subtitle("USA, 1900-1999") note("Source: National Vital Statistics, Vol 50, No. 6" ///
    "(1918 dip caused by 1918 Influenza Pandemic)") legend(label(1 "White males") label(2 "Black males"))
    Click image for larger version

Name:	statalist_example_1.png
Views:	1
Size:	87.6 KB
ID:	1620186


    When I attempt to open GraphEditor and manually change the size of the text, the text still does not change size, although the size of the text box does appear to change. For example, when I use the graph editor to change the size of the title "White and black life expectancy" from large to v. huge, I see this (note that the plot area is slightly shorter in height):
    Click image for larger version

Name:	statalist_example_2.png
Views:	1
Size:	85.3 KB
ID:	1620187




    I am running Stata 14.2 on macOS High Sierra Version 10.13.6. -update query- tells me "all files are up to date". This problem occurs both when I am using my laptop display or external monitors. I have used the same Stata license and machine for years without issue.

    Thanks in advance for any help you can offer!

  • #2
    It's probably a problem with your font. Open the General Preferences dialog, select Windows, then Graphs, then change the Font to something like Helvetica which is the default.
    -Chinh Nguyen

    Comment


    • #3
      This fixed the problem, thank you so much!

      Comment

      Working...
      X