| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Plots.Types.Text
Contents
- data TextPlot n
- data TextOptions n
- mkTextPlot :: TypeableFloat n => (n, n) -> String -> TextPlot n
- setOptions :: HasText a n => Lens' a (TextOptions n)
- textPlot :: (v ~ BaseSpace c, RealFloat n, Typeable n, PointLike v n (V2 n), MonadState (Axis b c n) m, Plotable (TextPlot n) b, v ~ V2) => (n, n) -> String -> State (Plot (TextPlot n) b) () -> m ()
- textPlot' :: (v ~ BaseSpace c, RealFloat n, Typeable n, PointLike v n (V2 n), MonadState (Axis b c n) m, Plotable (TextPlot n) b, v ~ V2) => (n, n) -> String -> m ()
- tString :: forall n. Lens' (TextPlot n) String
- textPoint :: forall n. Lens' (TextPlot n) (n, n)
- textOptions :: forall n. Lens' (TextPlot n) (TextOptions n)
- optalignment :: forall n. Lens' (TextOptions n) (n, n)
- optfontSize :: forall n. Lens' (TextOptions n) n
- optfontSlant :: forall n. Lens' (TextOptions n) FontSlant
- optfontWeight :: forall n. Lens' (TextOptions n) FontWeight
Text plot
Instances
| OrderedField n => Enveloped (TextPlot n) # | |
| (TypeableFloat n, Renderable (Text n) b, Renderable (Path V2 n) b) => Plotable (TextPlot n) b # | |
| type V (TextPlot n) # | |
| type N (TextPlot n) # | |
data TextOptions n #
Text alignment, font size, slant and weight
Instances
| Fractional n => Default (TextOptions n) # | |
mkTextPlot :: TypeableFloat n => (n, n) -> String -> TextPlot n #
Draw a given string at a given point.
Text lenses
setOptions :: HasText a n => Lens' a (TextOptions n) #
Text plot
textPlot :: (v ~ BaseSpace c, RealFloat n, Typeable n, PointLike v n (V2 n), MonadState (Axis b c n) m, Plotable (TextPlot n) b, v ~ V2) => (n, n) -> String -> State (Plot (TextPlot n) b) () -> m () #
textPlot' :: (v ~ BaseSpace c, RealFloat n, Typeable n, PointLike v n (V2 n), MonadState (Axis b c n) m, Plotable (TextPlot n) b, v ~ V2) => (n, n) -> String -> m () #
textOptions :: forall n. Lens' (TextPlot n) (TextOptions n) #
optalignment :: forall n. Lens' (TextOptions n) (n, n) #
optfontSize :: forall n. Lens' (TextOptions n) n #
optfontSlant :: forall n. Lens' (TextOptions n) FontSlant #
optfontWeight :: forall n. Lens' (TextOptions n) FontWeight #