Hi,
is it possible to adjust the spacing between the symol and the text in the legend with Plot.jl? MWE:
plot([1,2,3],
linewidth=5,
legend=true,
legendfontsize=30,
)
produces
Can the spacing between the blue line and y1
the legend be deceased/increased?
To increase the spacing, you can pad the legend label with spaces, like the following:
using Plots
gr()
myplot1 = plot([1,2,3],
linewidth=5,
legend=true,
legendfontsize=30,
label="y1"
)
myplot2 = plot([1,2,3],
linewidth=5,
legend=true,
legendfontsize=30,
label=" y1"
)
combinedplot = plot(myplot1, myplot2, layout=(1,2))
savefig(combinedplot, "myplot.png")
The extra padding does not show up in the plot preview window, but does appear in the saved PNG plot.
I do not know how to decrease the spacing but would interested in a solution.
That is good to know! I am mostly interested in decreasing the spacing as well.