Plots.jl legend box

How to remove surrounding box of the legend in Plots.jl?

2 Likes

According to the documentation

26

I guess that’s it :confused:

EDIT: insterted the correct screenshot

3 Likes

Use foreground_color_legend = nothing to set the frame color to transparent (likewise for background_color_legend).

12 Likes

Thank you very much! it worked

Do you know how to make the background of the legend to be transparent?

Does the suggestion two posts above not work for you?

It’s possible to remove all the background, but I didn’t find a way to make it semi-transparent.

My best guess is passing something like RGBA as colour, I am pretty sure it’s supported: Construction and Conversion · Colors

Thank you! It works!