Skip to content

Commit 8fc26b1

Browse files
Better layout for uncertain-function plots.
1 parent 178696e commit 8fc26b1

File tree

1 file changed

+5
-2
lines changed
  • Graphics/Dynamic/Plot

1 file changed

+5
-2
lines changed

Graphics/Dynamic/Plot/R2.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,8 +1248,11 @@ uncertainFnPlot :: ∀ m . (SimpleSpace m, Scalar m ~ ℝ)
12481248
=> ( -> (m +> )) -> Shade' m -> DynamicPlottable
12491249
uncertainFnPlot = case linearManifoldWitness :: LinearManifoldWitness m of
12501250
LinearManifoldWitness BoundarylessWitness -> \mfun (Shade' mBest me)
1251-
-> plot [ continFnPlot (($ mBest^+^δm) . mfun)
1252-
| δm <- normSpanningSystem' me ]
1251+
-> plot $ continFnPlot (($ mBest) . mfun)
1252+
: [ tweakPrerendered (Dia.opacity 0.2)
1253+
$ continFnPlot (($ mBest^+^σ*^δm) . mfun)
1254+
| δm <- normSpanningSystem' me
1255+
, σ <- [-1,1] ]
12531256

12541257
linregressionPlot :: x m y . ( SimpleSpace m, Scalar m ~ , y ~ , x ~ )
12551258
=> (x -> (m +> y)) -> [(x, Shade' y)]

0 commit comments

Comments
 (0)