Announcement

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

  • New font size overlaying old in graph editor

    Hi,

    I am quite new to STATA, just completing my first meta-analysis. I am editing my graphs and I need to enlarge the text. Text to the left hand side of the graph is fine, but to the right hand side of the graph the new text size overlays the original text, and I cant find a way to remove the original text. (Screen shot attached as I am not sure how to best describe this - STATA graph.docx)).

    Has anyone else experienced this? Does anyone know what I am doing wrong or how I can get rid of the original text?

    Thank you,

    Sally Bradshaw

  • #2
    Welcome to the Stata Forum/Statalist.

    Please read the FAQ. There you’ll find advice on sharing data/command/output as well as graphics.
    Best regards,

    Marcos

    Comment


    • #3
      Hi Marcos,

      Sorry, and thank you for your advice. Here is the chart as a .png as advised in the FAQ. Hope this is ok. The original size text can be seen in the SMD column.
      Click image for larger version

Name:	Graph.png
Views:	1
Size:	24.8 KB
ID:	1487127


      For more info, I used the drop down list in the Graph Editor to change the font size rather than the command line, and changed all the font sizes this way,

      Thank you,

      Sally

      Comment


      • #4
        You are asking for advice regarding a graph command, yet you do not show the command that you used to generate the graph. This does not look like a graph produced by one of the inbuilt Stata commands. However, you should have options available even in user-written commands.

        Comment


        • #5
          Hi Andrew,

          Thanks for taking the time to help me. The command that I used to generate the graph was the metan command, when I use this command the graph is generated automatically.

          This is the command:

          metan var4 var5 var6 var7 var8 var9, random label (namevar=var1)

          Sally

          Comment


          • #6
            metan is from SSC. It appears that the required option is texts()

            texts() (v9 update) specifies font size for text display on graph. This has been modified slightly so that the default is 100
            (as in a percentage) and may be increased or decreased as such (e.g., 80 or 120 for 20% smaller or larger respectively)

            Instead of using graph editor, try successively texts(110) or texts(120) or ... until the desired size is obtained.

            Code:
            metan var4 var5 var6 var7 var8 var9, random label (namevar=var1) texts(120)
            Last edited by Andrew Musau; 07 Mar 2019, 09:25.

            Comment


            • #7
              Thank you so much Andrew, this has worked really well and texts(200) is the perfect size for my report,

              Kind regards,

              Sally

              Comment

              Working...
              X