When I run plot([1,2,3], labels=["abc"])
The chart shows a legend with — [“abc”] instead of — abc.
How about plot([1,2,3], label="abc")
?
Yes that works for one series, but my example is a simplified one. I’m really working with multiple series. e.g. plot([1,2,3], [4,5,6], label=["abc", "def"])
gives —[“abc”, “def”]
Ah I figured it out I need a row vector as the labels argument.
thanks for the help