plots-0.1.0.0: Diagrams based plotting library.

Safe HaskellNone
LanguageHaskell2010

Plots.Types.Text

Contents

Synopsis

Text plot

data TextPlot n #

Instances

OrderedField n => Enveloped (TextPlot n) # 

Methods

getEnvelope :: TextPlot n -> Envelope (V (TextPlot n)) (N (TextPlot n)) #

(TypeableFloat n, Renderable (Text n) b, Renderable (Path V2 n) b) => Plotable (TextPlot n) b # 

Methods

renderPlotable :: InSpace v n (TextPlot n) => AxisSpec v n -> PlotStyle b v n -> TextPlot n -> QDiagram b v n Any #

defLegendPic :: InSpace v n (TextPlot n) => PlotStyle b v n -> TextPlot n -> QDiagram b v n Any #

type V (TextPlot n) # 
type V (TextPlot n) = V2
type N (TextPlot n) # 
type N (TextPlot n) = n

data TextOptions n #

Text alignment, font size, slant and weight

Instances

Fractional n => Default (TextOptions n) # 

Methods

def :: 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 () #

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 #