JetBrains / lets-plot-kotlin

Grammar of Graphics for Kotlin
https://lets-plot.org/kotlin/
MIT License
435 stars 36 forks source link

Improve border line type experience #220

Closed AndreiKingsley closed 3 months ago

AndreiKingsley commented 11 months ago

Now it looks awful

image

image

alshan commented 11 months ago

Dotted lines look as expected , why?

devcrocod commented 10 months ago

When the line type is dotted, I expect to see the original line through the dots. In this case, it is not so. Especially, you can see this on the last box with whiskers.

alshan commented 10 months ago

No, in ggplot "dotted" line consists of dots with the background in between. Take a look: http://www.cookbook-r.com/Graphs/Shapes_and_line_types/

To achieve visual effect that you needed try to combine two layers of boxes: dotted lines on top of solid lines.

IKupriyanov-HORIS commented 10 months ago

ggplot2 output for reference: image

devcrocod commented 10 months ago

Okay, I was talking about understanding. Here I have highlighted the problem areas:

Screenshot 2023-11-10 at 14 21 16

Even the ggplot examples given here look cleaner

alshan commented 10 months ago

@IKupriyanov-HORIS Looks like ggplot adjusts dots size/distance to the line width.

alshan commented 3 months ago

Was fixed in 4.7.3