How to modify the label details from a `poly` object (not just the text)

I’m trying to change the figure below to make the red and green squares in the labels box smaller (and, as a side effect, make the label box smaller, such that it doesn’t overlap with the circles).
How can I achieve that?
The figure is already at the precise size I want it to be.
As a workaround I could change the figure size, fonts, and linewidth sizes and rescale back to the size I wanted it to be, but I’d like to know how to properly do it.

The labels are created simply using the label keyword in the poly! function.
The relevant part of the script is:

...
    plt.poly!(ax,Circle(Point2f(xc, yc), dc), color = (:red,0.5), transparency = true, label="Δ = 2*dc")
    plt.poly!(ax,Circle(Point2f(xc, yc), 2*dc), color = (:green,0.5), transparency = true, label="Δ = 4*dc")
    plt.axislegend(ax)
...

Is there a simple setting for that? Or do I need to create a new “Label box” from scratch in order to do that?

The setting is patchsize Legend | Makie

There are also settings for the padding of the legend, the distances between labels and patches, etc.

1 Like

Thank you, jules!
I was looking for it in the “Label” entry on the reference page instead of the proper “Legend” entry :sweat_smile: