Skip to content

Commit 4894c35

Browse files
Prepare 2D plots (from colour-valued PointsWeb).
1 parent 889fe65 commit 4894c35

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Graphics/Dynamic/Plot/R2.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ import Data.Manifold.TreeCover
118118
import Data.Manifold.Web
119119
import qualified Data.Map.Lazy as Map
120120

121+
import qualified Data.Colour.Manifold as CSp
122+
121123
import Data.Tagged
122124

123125
import Text.Printf
@@ -578,6 +580,8 @@ instance Plottable (PointsWeb ℝ (Shade' ℝ)) where
578580
locals = Hask.toList $ localFocusWeb web
579581
plot _ = def
580582

583+
instance Plottable (PointsWeb ² (CSp.Colour )) where
584+
581585
instance Plottable (SimpleTree P2) where
582586
plot (GenericTree Nothing) = plot ([] :: [SimpleTree P2])
583587
plot (GenericTree (Just (ctr, root)))

dynamic-plot.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Library
6161
, glib
6262
, colour >= 2 && < 3
6363
, manifolds >= 0.2.3 && < 0.2.4
64+
, colour-space
6465
, lens < 4.15
6566
Other-Extensions: FlexibleInstances
6667
, TypeFamilies

0 commit comments

Comments
 (0)