Skip to content

Commit d6a57e0

Browse files
Fix pointdensity support
1 parent 6d8e592 commit d6a57e0

File tree

2 files changed

+2
-2
lines changed
  • demo/jvm-batik/src/main/kotlin/frontendContextDemo/scripts
  • plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/bistro/common

2 files changed

+2
-2
lines changed

demo/jvm-batik/src/main/kotlin/frontendContextDemo/scripts/JointPlot.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ object JointPlot {
6969

7070
run {
7171
val p =
72-
jointPlot(irisData, "petal length (cm)", "petal width (cm)", colorBy = "target", geom = "pointdensity")
72+
jointPlot(irisData, "petal length (cm)", "petal width (cm)", geom = "pointdensity")
7373
p.show()
7474
}
7575
}

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/bistro/common/Plot2dUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ object Plot2dUtil {
143143
alpha = alpha,
144144
showLegend = showLegend
145145
) {
146-
fill = colorBy.takeIf { it != null } ?: "..density.."
146+
this.color = colorBy.takeIf { it != null } ?: "..density.."
147147
}
148148
}
149149

0 commit comments

Comments
 (0)