Custom Legend Matplotlib


Is it possible to create a custom legend in matplotlib? or is there a workaround for it? I would like to create something like this.



This should help

1 Like

Thanks for the help. Btw, I’ve already done that but it’s only add default legend to the current chart. Right now, I want to change the legend marker from ‘o’ to ‘-’ for example, adding custom text, etc.

let’s see if this would help

1 Like

Well either way, thanks for the help. I just found my answer through reading the legend documentation. Although not meeting the expectation.

Alright then, Happy you were able to get it. cheers