Positioning of slot fixed

This commit is contained in:
Luis Fernando Molina committed 2019-12-16 10:18:12 +01:00
1 parent 2c54c8ff03
commit 94829ecafb
1 file changed
+1 -1
+1 -1
View File
@@ -577,7 +577,7 @@ function newPlotter () {
if (plotterModuleConfig !== undefined) {
if (plotterModuleConfig.slot !== undefined) {
/* We reset the y coordinate since it will be transformed with another coordinate system to fit into a slot. */
dataPoint.y = (-1) * y * slotCoordinateSystem.scale.y + (plotterModuleConfig.slot.number - 1) * slotHeight
dataPoint.y = (-1) * y * slotCoordinateSystem.scale.y + (plotterModuleConfig.slot.number - 1) * slotHeight + viewPort.visibleArea.topLeft.y
}
}
}