Skip to content

Commit 86d6be7

Browse files
authored
Merge pull request #1387 from drgrice1/fix-plots-jsxgraph-drawzero
Fix `drawZero` for JSXGraph output of the plots macro.
2 parents b64c995 + 995ba8e commit 86d6be7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

htdocs/js/Plots/plots.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ const PGplots = {
347347
!options.yAxis?.visible ||
348348
(options.yAxis.location === 'center' && (options.yAxis.position ?? 0) != 0) ||
349349
((options.yAxis.location === 'left' || options.yAxis.location === 'box') &&
350-
(options.yAxis.min ?? -5) != 0) ||
351-
(options.yAxis.location === 'right' && (options.yAxis.max ?? 5) != 0)
350+
(options.xAxis.min ?? -5) != 0) ||
351+
(options.yAxis.location === 'right' && (options.xAxis.max ?? 5) != 0)
352352
? true
353353
: false,
354354
insertTicks: false,
@@ -446,8 +446,8 @@ const PGplots = {
446446
!options.xAxis?.visible ||
447447
(options.xAxis.location === 'middle' && (options.xAxis.position ?? 0) != 0) ||
448448
((options.xAxis.location === 'bottom' || options.xAxis.location === 'box') &&
449-
(options.xAxis.min ?? -5) != 0) ||
450-
(options.xAxis.location === 'top' && (options.xAxis.max ?? 5) != 0)
449+
(options.yAxis.min ?? -5) != 0) ||
450+
(options.xAxis.location === 'top' && (options.yAxis.max ?? 5) != 0)
451451
? true
452452
: false,
453453
insertTicks: false,

0 commit comments

Comments
 (0)