Announcement

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

  • Reseting Graphics Settings

    Hi, I set the cleanplots graphics scheme to permanent, but I want to reset the my Stata program so that there is no permanent graphics scheme. When I try to reset it using "set scheme s2color, perm", it does change the color scheme back to the standard Stata scheme. However, it seems doing so creates permanent settings that cannot be altered. For example, below, I provide a sample dataset that graphs a twoway scatterplot. Despite requesting that markers be red, very large, and labeled by group, you can see that the markers are blue, default-sized (medium?), and unlabeled.


    Code:
    clear 
    input id time group var 
    123 1 0 10
    123 2 0 20
    123 3 0 30
    234 1 0 5
    234 2 0 15
    234 3 0 25
    345 1 1 15
    345 2 1 25
    345 3 1 35
    456 1 1 15
    456 2 1 20
    456 3 1 25
    end
    
    set scheme cleanplots, perm
    
    twoway scatter var time || lfit var time, mlabel(group) mcolor(blue)
    
    set scheme s2color, perm
    
    twoway scatter var time || lfit var time, mlabel(group) mcolor(red) msize(vlarge)
    Here's the graph that is produced by the last line of code:

    Click image for larger version

Name:	Graph.jpg
Views:	1
Size:	18.4 KB
ID:	1667916



    Essentially, I am asking: 1) How do I revert Stata graphics setting back to the defaul, where I can alter the settings of my graphs without necessarily specifying another scheme? and 2) how do I make Stata's default graphic settings the default when I start a new session?





    Attached Files

  • #2
    This is nothing to do with schemes. By the time you set marker label colour, and so forth, the scatter plot has in effect already been drawn. The lfit command ignores your options as irrelevant, but you can't reach back and change the scatter plot, except by specifying the options in the right place.
    Code:
     
     twoway scatter var time, mlabel(group) mcolor(red) msize(vlarge) || lfit var time

    Comment


    • #3
      Sorry for the late reply. That worked. Thanks, Nick!

      Comment

      Working...
      X