Announcement

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

  • Line legend: group two lines for only one text legend

    I have a graph with several lines and I can group them by pairs with the same legend

    Code:
    (connected maize_data year, color(`color`mn''*0.4) msize(vsmall)) (line maize_model year, color(`color`mn'') lpattern(l) lwidth(medium ..)) (connected flowers_data year, color(`color`mn''*0.4) msize(vsmall)) (line flowers_model year, color(`color`mn'') lpattern(l) lwidth(medium ..))/// 
                , title("Global average") graphregion(color(white)) plotregion(color(white)) ///
                xscale(range(1970 2100)) xlab(1970(20)2100) ///  
                ytitle("Yield (t/Ha)") xtitle("Year")
    I would like to find a way, for this graph, to have the two lines for maize grouped only one legend "Maize" and the two other lines grouped in one legend "Flowers"

  • #2
    Hello ‘Anais Anonymous’,

    Please prefer to follow the FAQ recommendations. Amongst them, the registry with name and family name. You use the contact us button to edit your name.
    Best regards,

    Marcos

    Comment

    Working...
    X