Announcement

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

  • user-made scheme for mac

    Hi I have been working with the scheme I created.

    It works well with my PC but crashes with my MAC.

    Can anyone give me an idea about what is going on?

    Thanks.

    The code is as below.

    --------------------


    Code:
    #include s2color
    
    color background white
    color plotregion gs14
    color grid white
    color major_grid white
    color axisline white
    yesno draw_major_grid yes
    yesno draw_major_hgrid yes
    yesno draw_major_vgrid yes
    -------------------------

  • #2
    Your scheme works just fine for me in Stata 15 and Stata 14 for Mac. Which version of Stata are you using? What do you mean it crashes? What graph command are you using?
    -Chinh Nguyen

    Comment


    • #3
      Chinh Nguyen (StataCorp) is it potentially a string encoding issue (e.g., LATIN-1 to UTF-8 or something)?

      Comment


      • #4
        Originally posted by Chinh Nguyen (StataCorp) View Post
        Your scheme works just fine for me in Stata 15 and Stata 14 for Mac. Which version of Stata are you using? What do you mean it crashes? What graph command are you using?
        I am using STATA 15 for MAC. I did not have a problem with STATA 14 and STATA 15 for pc.

        The error messages are as follows.


        Click image for larger version

Name:	2017-07-22 오후 4.46.52.png
Views:	1
Size:	472.2 KB
ID:	1403236


        Comment


        • #5
          No error messages are visible in #4. Just statements that appear to be correct, are they not?

          Please note https://www.statalist.org/forums/help #12 on screenshots and #6 on our request that people use full real names.

          Comment


          • #6
            Originally posted by Nick Cox View Post
            No error messages are visible in #4. Just statements that appear to be correct, are they not?

            Please note https://www.statalist.org/forums/help #12 on screenshots and #6 on our request that people use full real names.

            Thanks for the advice.
            I just forgot to upload the later part of the screen shots.

            The error message is as below.

            Code:
            (note:  color background not found in scheme, default attributes used)
            (note:  linestyle foreground not found in scheme, default attributes used)
            (note:  linestyle not found in scheme, default attributes used)
            (note:  shadestyle foreground not found in scheme, default attributes used)
            (note:  shadestyle not found in scheme, default attributes used)
            (note:  linestyle foreground not found in scheme, default attributes used)
            (note:  linestyle not found in scheme, default attributes used)
            (note:  shadestyle foreground not found in scheme, default attributes used)
            (note:  shadestyle not found in scheme, default attributes used)
            (note:  plotregionstyle twoway not found in scheme, default attributes used)
            (note:  plotregionstyle not found in scheme, default attributes used)
            option seriesid() not allowed
            r(198);
            Thanks in advance.

            Seokjin (I sent the administrator to change to the full name)


            Comment


            • #7
              So, now we can see the error message. An option not being allowed is not a crash in any usual sense. Perhaps Chinh can comment further.

              Comment


              • #8
                Originally posted by Chinh Nguyen (StataCorp) View Post
                Your scheme works just fine for me in Stata 15 and Stata 14 for Mac. Which version of Stata are you using? What do you mean it crashes? What graph command are you using?
                Could you let me know in which directory the scheme file is placed?
                The file works fine with my STATA 14 but fails with STATA 15.



                Comment


                • #9
                  Where it's placed is I guess not the issue as Stata can certainly see the scheme file.

                  Comment


                  • #10
                    Originally posted by Seokjin Woo View Post

                    Could you let me know in which directory the scheme file is placed?
                    The file works fine with my STATA 14 but fails with STATA 15.


                    I saved the scheme file to "~/Library/Application Support/Stata/ado/personal/" so that it's available to all versions of Stata. Here's a video of it working:

                    https://www.dropbox.com/s/h9fftpxah8...style.mov?dl=0
                    -Chinh Nguyen

                    Comment


                    • #11
                      Thanks. It is working well!

                      Comment

                      Working...
                      X