Announcement

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

  • Is there any way we could permanently set the graphregion(fcolor(white))?

    I like white plotting background. So, to make it white, I have to set the graph region color option for every plot manually.

    For example:


    Code:
    sysuse mpg
    twoway (scatter mpg weight, graphregion(fcolor(white)))

    I would like to set the
    Code:
    graphregion(fcolor(white))
    option permanently for Stata. Is there any way to do that?
    Last edited by Rahul Raoniar; 09 Oct 2021, 15:16.

  • #2
    If you like all of the other default options, you can create your own custom scheme which replicates the default scheme and only changes the background color. Create a new file called scheme-s2colorwhite.scheme containing the following text:

    Code:
    #include s2color
    color background white
    Save this file to your personal directory, which you can find by typing -sysdir- into Stata. Make sure the file extension is .scheme, rather than .txt or anything else.

    Now set this scheme as the new default by typing:

    Code:
    set scheme s2colorwhite, permanently
    into Stata.

    All of your graphs should now have a white background by default.

    See -help scheme_files- for more information on creating your own scheme.

    Comment


    • #3
      Thank you, Ali Atia 👏👏. Now I'm using the Stata scheme developed by Professor Asjad Naqvi (https://github.com/asjadnaqvi/Stata-schemes). I really like the Tableau scheme🥰.
      Last edited by Rahul Raoniar; 12 Oct 2021, 07:55.

      Comment

      Working...
      X