Plots -> PgfPlotsX: Inserting a legend title?


I am using Plots with the pgfplotsx() option. Is it possible to easily add a legend title using this package?

Something like this:

(Not my picture found here )

I only care about solutions for the PgfPlotsX package, since I am using this plotting package for all my other plots.

I am aware of the option of starting from an empty tikz document and building everything manually using PgfPlotsX, but this seems cumbersome when I only need to do this one thing.

Kind regards

Should be as easy as plot(1:5, legendtitle = "Title")

1 Like