Announcement

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

  • Graph legend : assign two symbols to one label

    Hi all,

    I'm trying to the create the attached graph, but I'd like to consolidate the legend such that, for example, the blue line and blue dots correspond to "steve" only once. I'm not sure how to do this with the legend options. Is there a way of accomplishing this?

    Click image for larger version

Name:	Screen Shot 2019-07-11 at 1.34.30 PM.png
Views:	1
Size:	52.9 KB
ID:	1507222


    I am currently using the somewhat primitive optioning:

    Code:
    legend(order(1 "steve"  2 "steve" 3 "jerry" 4 "jerry" 5 "chris" 6 "chris" 7 "helen" 8 "helen") cols(2) pos(6))

  • #2
    Just had a flash of an idea, which worked.

    Code:
    legend(order(1 "" 2 "steve" 3 "" 4 "jerry" 5 "" 6 "chris" 7 "" 8 "helen") cols(2) pos(6) colgap(0.5))

    Comment

    Working...
    X