Announcement

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

  • How to call a color from a defined scheme

    I have created a new scheme and set it to my permanent scheme with the command: set scheme personalscheme, perm

    Down the lines of the scheme, I have defined colors like this:
    color p1 "200 50 200%100" which is a pink
    color p2 "50 80 110%100" which is a blue
    color p3 "250 130 20%100" which is an orange
    ... continuing

    i would like to know how I can call these colors in a two way graph, for example:
    Code:
    sysuse auto, clear
    sort foreign trunk
    twoway (line weight trunk if foreign == 0)(line weight trunk if foreign == 1, lcol(p3))
    I then get:
    (note: named style p3 not found in class color, default attributes used)

    And the foreign cars are printed with blue line (p2) but I would like them to be orange. Any suggestions?

    Thank you
Working...
X