Describe the bug
When creating a boxplot with categories (based on this example) where no outliers exist for one category, the outliers for other categories are positioned as though that category didn't exist.
To Reproduce
Steps to reproduce the behavior:
- Download the aforementioned example
- Replace
generateData with
fun generateData(category: String) =
dataFrameOf((0..<5).map { it.toString() }) { k -> List(100) { if (category != "category0" && it < 10) random.nextDouble(45.0, 55.0) else 50.0 } }
.gather(*(0..<5).map { it.toString() }.toTypedArray())
.into("num", "value").add("category") { category }
- Include
outliers in the boxplot
- Render or display the plot
- See that it is wrong, even after trying to mess with
position
Expected behavior
The outlier dots should always be in the same column as the corresponding box
Actual Behavior
The outlier dots are positioned as though there are only two columns, which causes them to end up in the wrong columns
Screenshots
Library Version, Tool version, and Environment
(please complete the following information):
- Library version: 0.8.3
- Kotlin-Notebook version: none, added via Gradle
Additional information
I have uploaded the modified example code as a gist.
Describe the bug
When creating a boxplot with categories (based on this example) where no outliers exist for one category, the outliers for other categories are positioned as though that category didn't exist.
To Reproduce
Steps to reproduce the behavior:
generateDatawithoutliersin theboxplotpositionExpected behavior
The outlier dots should always be in the same column as the corresponding box
Actual Behavior
The outlier dots are positioned as though there are only two columns, which causes them to end up in the wrong columns
Screenshots
Library Version, Tool version, and Environment
(please complete the following information):
Additional information
I have uploaded the modified example code as a gist.