Incorrect colors across different series in Plots.jl

I have pushed a plot recipe for my package that produces a plot from an image that looks like this:

In this recipe I tried to highlight the optimum solution in the x axis using the same color of the series. However, as you can see from the legend, the colors of the rectangular shapes in the x axis are flipped.

Can you please help me fix the issue? You can find the recipe here: https://github.com/juliohm/ImageQuilting.jl/blob/master/src/plot_recipes.jl#L21

Try swapping the primary and label lines

1 Like

Thank you @tbreloff, problem solved.