Announcement

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

  • legend with text and labels


    Hello, I want to have a legend that shows labels and text. This is my code: legend (row(2) order(- "Comment 1" 1 - "Comment 2" 2 label(1 "Var1lab") label(2 "Var2lab")) I cant get it right always comes up with parenthese do not balance. How do you do it correctly?

  • #2
    The error message is usually informative: You have five "(" but only four ")".

    Comment


    • #3
      ok thanks. Now I got
      legend (row(2) order(- "Comment 1" 1 - "Comment 2" 2 label(1 "Var1lab") label(2 "Var2lab")))
      I get the error message label(1 not an integer, option order() ignored.

      Comment


      • #4
        It is hard to know what you want, but it may be more like this


        Code:
        legend(row(2) order(- "Comment 1" 1 "Var1lab" - "Comment 2" 2 "Var2lab"))

        Comment


        • #5
          Thanks, that works. Didnt know you were supposed to drop the "labs".

          Comment


          • #6
            I don't know whether order() and label() can be combined. I never use label() as I often want to insist on some details using order() and you can specify labels within it.

            Comment

            Working...
            X