We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 705970c commit 16022c4Copy full SHA for 16022c4
2 files changed
Graphics/Dynamic/Plot/R2.hs
@@ -539,15 +539,15 @@ instance Plottable (PointsWeb ℝ (Shade' ℝ)) where
539
540
trivs :: [((ℝ, Diff ℝ), ((ℝ, Diff ℝ), LocalLinear ℝ ℝ))]
541
trivs = map mkTriv locals
542
- where mkTriv ((xc,Shade' yc yce), [(xo, Shade' yo _)])
543
- = ( (xc, xo-xc)
+ where mkTriv ((xc,Shade' yc yce), [(δxo, Shade' yo _)])
+ = ( (xc, δxo)
544
, ( (yc, metricAsLength yce)
545
- , denseLinear $ \δx -> δx * (yo-yc)/(xo-xc) ) )
546
- mkTriv ((xc,Shade' yc yce), [(xl, Shade' yl _), (xr, Shade' yr _)])
+ , denseLinear $ \δx -> δx * (yo-yc)/δxo ) )
+ mkTriv ((xc,Shade' yc yce), [(δxl, Shade' yl _), (δxr, Shade' yr _)])
547
= ( (xc, δxg)
548
549
, denseLinear $ \δx -> δx * η ) )
550
- where δxg = (xr - xl)/2
+ where δxg = (δxr - δxl)/2
551
η = (yr - yl)/(2*δxg)
552
mkTriv (_,l) = error $ "Encountered point in web with "
553
++show(length l)++" neighbours. Any point in 1D "
dynamic-plot.cabal
@@ -60,7 +60,7 @@ Library
60
, gtk > 0.10 && < 0.15
61
, glib
62
, colour >= 2 && < 3
63
- , manifolds >= 0.2.2 && < 0.2.3
+ , manifolds >= 0.2.3 && < 0.2.4
64
, lens < 4.15
65
Other-Extensions: FlexibleInstances
66
, TypeFamilies
0 commit comments