I am using CairoMakie
to plot a boxplot. The argument width
in boxplot
seems to work only if there are 2 or more boxplots to plot, but ignored if there is only one boxplot. For instance,
using CairoMakie
xs = rand(1:2, 1000)
ys = randn(1000)
boxplot(xs, ys; width=0.2)
current_figure()
correctly gives a slim boxplot look:
but doing this:
using CairoMakie
xs = rand(1:1, 1000)
ys = randn(1000)
boxplot(xs, ys; width=0.2)
current_figure()
instead gives a wide boxplot regardless what value I give to the width
argument:
Is this a bug? Any workarounds so that plotting only 1 boxplot also gives me a slim boxplot. Thank you.