An overhaul of Plots' legend capabilities would be really useful. Here are some relevant open issues
contour legend does not scale with clims #533aspect_ratio = :equal with legend = false not correct for plotlyjs() #1603As well as a desire to share color bars and legends among subplots, allow multiple columns in legends and improvement of the alignment of axes (both with and without link) in layouts with legends.
https://github.com/JuliaPlots/Plots.jl/issues/2033 should be fixed
Yay @isentropic you're on a roll!
Perhaps there could be another explicit legend object, that is actually an empty axis with empty plot on it. Similar to what you showed here https://github.com/JuliaPlots/Plots.jl/issues/673 but it would read as,
plot(
scatter(rand(100,3), legend = false),
scatter(rand(100,3), legend = false),
legend((1:3)), # actually it is scatter((1:3)', xlim = (4,5), legend = true, framestyle = :none) under the hood
layout = @layout([a b c{0.1w}]))
That is we could perhaps add a new series type called legend that would actually be an invisible shrunk axis so that all backends can support it. This way it won't feel look as a hack and can be presented in documentation.
legend would be able to have few recipes supporting only shapes and words given to it
This way we can solve,
infixing (inplotting) legend series on top of other axes would allow users to have an explicit control over legends if they wish
Just want to emphasize how useful horizontal legends/legends with multiple columns would be.
Fixed #574
Most helpful comment
Just want to emphasize how useful horizontal legends/legends with multiple columns would be.