Makie.jl icon indicating copy to clipboard operation
Makie.jl copied to clipboard

Horizontal lines for boxplot.

Open pitipatw opened this issue 1 year ago • 9 comments

Feature description

The horizontal lines at IQR of the boxplot.

This might be a tiny thing but I found it affect how people percieve Boxplot and got confused easily.

For plot types, please add an image of how it should look like

boxplot.png

pitipatw avatar May 06 '24 21:05 pitipatw

I don't understand what's the ask here.

jkrumbiegel avatar May 06 '24 21:05 jkrumbiegel

Sorry, let me clarify this a bit. So, currently: GLMakie v0.9.10, CairoMakie v0.11.10, and Makie v0.20.9, If we use boxplot right now, the plot looks like this. image

But normally, boxplot looks like this.

image

notice the horizontal line. I dont think that's currently an option to have in Makie.

pitipatw avatar May 07 '24 02:05 pitipatw

I found that raincloud has the line, but not the boxplot, maybe we can use the same thing for raincloud with boxplot?

pitipatw avatar May 07 '24 04:05 pitipatw

It's not well documented, but there's:

categories = rand(1:3, 1000)
values = randn(1000)
boxplot(categories, values; whiskerwidth=0.5)

image

SimonDanisch avatar May 07 '24 08:05 SimonDanisch

I see, thank you for pointing this out. So, should there be an update on the boxplot function? I can try to do this.

pitipatw avatar May 07 '24 12:05 pitipatw

You could update the docstring to mention that whiskers can be added by setting the whiskerwidth parameter...

asinghvi17 avatar May 07 '24 12:05 asinghvi17

after 0.21 all plotting function keywords should get separate examples in the docs anyway, this is one of them

jkrumbiegel avatar May 07 '24 12:05 jkrumbiegel

You mean each "plotting function keyword" gets its own page or for each "plotting function"?

pitipatw avatar May 07 '24 13:05 pitipatw

If this part is not currently implemented, I'm willing to collaborate. Can you guide me how to do so?

pitipatw avatar May 21 '24 04:05 pitipatw