Skip to content

Commit

Permalink
Use proper scale range for TSpline drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Jun 21, 2024
1 parent 2e7ffba commit 985ac10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/draw/TSplinePainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ class TSplinePainter extends ObjectPainter {

if (this.options.Line || this.options.Curve) {
const npx = Math.max(10, spline.fNpx), bins = []; // index of current knot
let xmin = Math.max(pmain.scale_xmin, spline.fXmin),
xmax = Math.min(pmain.scale_xmax, spline.fXmax),
let xmin = Math.max(funcs.scale_xmin, spline.fXmin),
xmax = Math.min(funcs.scale_xmax, spline.fXmax),
indx = this.findX(xmin);

if (pmain.logx) {
Expand Down

0 comments on commit 985ac10

Please sign in to comment.