Announcement

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

  • color macros for graphs

    I'm trying to setup macros to use across a set of graphs for cmyk colors.

    I've tried
    local mygray : "45 45 49 8"
    local mygray : `"45 45 49 8"''

    but for both Stata tells me
    "45 45 49 8 not allowed

    I had also tried these without the : but then when I used the macros in a bar graph [color(`mygray'), I don't get the color I want which I do get specifying color("45 45 49 8").

    What am I missing?

  • #2
    Try

    Code:
    color("`mygray'")
    The double quotes in your definition of the local are delimiters and so not included in the definition. In several contexts the syntax requires you to specify the "" explicitly to show that some argument is a string value.

    Comment


    • #3
      That works! Thanks, Bert

      Comment

      Working...
      X