Announcement

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

  • Graph Commands Not Working After Upgrading to Stata 17

    Hi,

    I upgraded to Stata 17 about 3-4 weeks ago. I have not had any problems with most operations (merging datasets, generating summary statistics, running regressions, etc.). However, I recently tried creating some scatter plots and found that none of the graphing commands seem to be working. Here is example below. I load Stata's automobile dataset, then try to create a scatter plot of price and mpg. In return, I get a lot of "notes" that I cannot decipher. When I was using Stata 16 earlier this year everything worked fine. Has anyone else run into this problem? Is this something I should take to Stata directly?

    Code:
    sysuse auto
    
    scatter price mpg

    Sample Output:
    (note: named style relative not found in class sizetype, default attributes used)
    (note: sizetype not found in scheme, default attributes used)
    (note: named style body not found in class textstyle, default attributes used)
    (note: named style default not found in class tickstyle, default attributes used)
    (note: named style thin not found in class linewidth, default attributes used)
    (note: linewidth not found in scheme, default attributes used)
    (note: named style medium not found in class linewidth, default attributes used)
    (note: linewidth not found in scheme, default attributes used)
    (note: named style yes not found in class yesno, default attributes used)
    (note: yesno not found in scheme, default attributes used)
    (note: named style yes not found in class yesno, default attributes used)
    (note: yesno not found in scheme, default attributes used)
    (note: named style no not found in class yesno, default attributes used)
    (note: yesno not found in scheme, default attributes used)
    (note: named style no not found in class yesno, default attributes used)
    (note: yesno not found in scheme, default attributes used)
    (note: named style no not found in class yesno, default attributes used)
    (note: yesno not found in scheme, default attributes used)
    (note: named style no not found in class yesno, default attributes used)
    (note: yesno not found in scheme, default attributes used)
    (note: named style major_horiz_default not found in class ticksetstyle, default attributes used)
    (note: named style major_horiz_default not found in class ticksetstyle, default attributes used)
    (note: named style major_horiz_default not found in class ticksetstyle, default attributes used)
    (note: named style major_horiz_default not found in class ticksetstyle, default attributes used)

    Screenshot
    Click image for larger version

Name:	screenshot.png
Views:	1
Size:	85.9 KB
ID:	1658108

  • #2
    It looks as if somehow your Stata installation is missing the scheme and class files that Stata's graph commands rely on. I suggest you uninstall Stata 17 and re-install it. If you encounter the same problem after that, then I think you should contact StataCorp's technical support.

    Comment


    • #3
      Thanks Clyde! I will try reinstalling the software and see if that resolves the issue.

      Comment


      • #4
        My only other question, is did you have, for 16, some class specific to your version of Stata (if that's even possible) that wouldn't be present in your current version? Also, did any graph appear or did it just spit notes back at you without any output?

        Comment


        • #5
          You can control your installation using the Stata Installation Qualification Tool (IQT).

          Comment


          • #6
            Hi everyone,
            I'm facing the same issues with the marginsplot command not working in Stata 18. As recommended by Clyde Schechter, I tried reinstalling Stata 18 to resolve the problem. Unfortunately, that didn't seem to fix it. Additionally, I ran the Stata Installation Qualification Tool (IQT), as advised by Bjarte Aagnes, but it didn't flag any issues. Dallas Wood, did the reinstallation work for you? I'm still experiencing the same issue even after trying the suggested steps. Has anyone else using Stata 18 encountered and solved this problem differently? This is the problem I encounter:

            Click image for larger version

Name:	Screenshot 2023-12-21 123200.png
Views:	1
Size:	35.5 KB
ID:	1737864



            Code:
            sysuse auto
            reg price mpg i.foreign 
            margins foreign
            marginsplot, plot1opts(lpattern(solid) lwidth(med) lcolor(gs14))

            Comment


            • #7
              see valid options for linewidthstyle
              Code:
              help linewidthstyle

              Comment


              • #8
                Originally posted by Damiano Uccheddu View Post
                Hi everyone,

                Code:
                sysuse auto
                reg price mpg i.foreign
                margins foreign
                marginsplot, plot1opts(lpattern(solid) lwidth(med) lcolor(gs14))
                I solved it with - medium -
                Code:
                sysuse auto
                reg price mpg i.foreign
                margins foreign
                marginsplot, plot1opts(lpattern(solid) lwidth(medium) lcolor(gs14))

                Comment


                • #9
                  Solved! Many thanks to both of you! It is likely that in earlier versions of Stata it was possible to abbreviate with 'med'... but I am not sure about this. Thanks again!

                  Comment

                  Working...
                  X