PrimitiveArray-Pretty-0.0.0.2: Pretty-printing for primitive arrays

Diagrams.TwoD.ProbabilityGrid

Description

Probability grid square drawing routines.

Synopsis

# Documentation

Fill weight for our grid. If the fill weight is logarithmic, then the line length is 1 / (1 + log value) otherwise it is value.

Constructors

 FWlog FWlinear FWfill

Instances

 Source # Methods Source # Methodsgfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FillWeight -> c FillWeight #gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FillWeight #dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c FillWeight) #dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FillWeight) #gmapT :: (forall b. Data b => b -> b) -> FillWeight -> FillWeight #gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FillWeight -> r #gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FillWeight -> r #gmapQ :: (forall d. Data d => d -> u) -> FillWeight -> [u] #gmapQi :: Int -> (forall d. Data d => d -> u) -> FillWeight -> u #gmapM :: Monad m => (forall d. Data d => d -> m d) -> FillWeight -> m FillWeight #gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FillWeight -> m FillWeight #gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FillWeight -> m FillWeight # Source # MethodsshowList :: [FillWeight] -> ShowS #

data FillStyle Source #

Constructors

 FSopacityLog FSopacityLinear FSfull

Instances

 Source # Methods Source # Methodsgfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FillStyle -> c FillStyle #gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FillStyle #dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c FillStyle) #dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FillStyle) #gmapT :: (forall b. Data b => b -> b) -> FillStyle -> FillStyle #gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FillStyle -> r #gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FillStyle -> r #gmapQ :: (forall d. Data d => d -> u) -> FillStyle -> [u] #gmapQi :: Int -> (forall d. Data d => d -> u) -> FillStyle -> u #gmapM :: Monad m => (forall d. Data d => d -> m d) -> FillStyle -> m FillStyle #gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FillStyle -> m FillStyle #gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FillStyle -> m FillStyle # Source # MethodsshowList :: [FillStyle] -> ShowS #

A single square in our grid.

grid :: (Renderable (Text Double) b, Renderable (Path V2 Double) b) => FillWeight -> FillStyle -> t -> Int -> [String] -> [String] -> [Log Double] -> QDiagram b V2 Double Any Source #

Draw the actual grid.

svgGridFile :: FilePath -> FillWeight -> FillStyle -> Int -> Int -> [String] -> [String] -> [Log Double] -> IO () Source #

Render as svg.

epsGridFile :: String -> FillWeight -> FillStyle -> Int -> Int -> [String] -> [String] -> [Log Double] -> IO () Source #

Render as eps.

Constructors

 SVG EPS

Instances

 Source # Methods Source # Methodsgfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RenderChoice -> c RenderChoice #gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RenderChoice #dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RenderChoice) #dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RenderChoice) #gmapT :: (forall b. Data b => b -> b) -> RenderChoice -> RenderChoice #gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RenderChoice -> r #gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RenderChoice -> r #gmapQ :: (forall d. Data d => d -> u) -> RenderChoice -> [u] #gmapQi :: Int -> (forall d. Data d => d -> u) -> RenderChoice -> u #gmapM :: Monad m => (forall d. Data d => d -> m d) -> RenderChoice -> m RenderChoice #gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderChoice -> m RenderChoice #gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderChoice -> m RenderChoice # Source # MethodsshowList :: [RenderChoice] -> ShowS #

gridFile :: [RenderChoice] -> String -> FillWeight -> FillStyle -> Int -> Int -> [String] -> [String] -> [Log Double] -> IO () Source #

Choose a renderer with appropriate file name suffix