plot-0.2.3.9: A plotting library, exportable as eps/pdf/svg/png or renderable with gtk

Copyright(c) A. V. H. McPhail 2010
LicenseBSD3
Maintainerhaskell.vivian.mcphail <at> gmail <dot> com
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Graphics.Rendering.Plot.Figure

Contents

Description

Creation and manipulation of Figures

The same problem of leaked instances as at http://hackage.haskell.org/packages/archive/graphviz/2999.10.0.1/doc/html/Data-GraphViz-Commands.html#t%3AGraphvizCanvas occurs here.

with, set, clear, new, and add are the operations that can be performed on various elements of a figure.

glib/data-accessor abstractions (verbs/modifiers) are planned for future implementations

Synopsis

Documentation

Top level operation

data Figure a Source #

Instances

Monad Figure Source # 

Methods

(>>=) :: Figure a -> (a -> Figure b) -> Figure b #

(>>) :: Figure a -> Figure b -> Figure b #

return :: a -> Figure a #

fail :: String -> Figure a #

Functor Figure Source # 

Methods

fmap :: (a -> b) -> Figure a -> Figure b #

(<$) :: a -> Figure b -> Figure a #

Applicative Figure Source # 

Methods

pure :: a -> Figure a #

(<*>) :: Figure (a -> b) -> Figure a -> Figure b #

(*>) :: Figure a -> Figure b -> Figure b #

(<*) :: Figure a -> Figure b -> Figure a #

Simple Figure Source # 

Methods

simple :: Plot () -> Figure ()

MonadState FigureState Figure Source # 

Default options

withTextDefaults :: Text () -> Figure () Source #

perform some actions on the text defaults, must be run before other text element modifications

withLineDefaults :: Line () -> Figure () Source #

perform some actions on the line defaults, must be run before other line element modifications

withPointDefaults :: Point () -> Figure () Source #

perform some actions on the point defaults, must be run before other point modifications

withBarDefaults :: Bar () -> Figure () Source #

perform some actions on the bar defaults, must be run before other point modifications

Figures

newFigure :: Figure () Source #

create a new blank Figure

Formatting

setBackgroundColour :: Color -> Figure () Source #

set the background colour of the figure

setFigurePadding :: Double -> Double -> Double -> Double -> Figure () Source #

set the padding of the figure

withTitle :: Text () -> Figure () Source #

operate on the title

withSubTitle :: Text () -> Figure () Source #

operate on the sub-title

setPlots Source #

Arguments

:: Int

rows

-> Int

columns

-> Figure () 

set the shape of the plots, losing all current plots

withPlot :: (Int, Int) -> Plot () -> Figure () Source #

perform some actions on the specified subplot

withPlots :: Plot () -> Figure () Source #

perform some actions all subplots

Sub-plots

data Plot a Source #

Instances

Monad Plot Source # 

Methods

(>>=) :: Plot a -> (a -> Plot b) -> Plot b #

(>>) :: Plot a -> Plot b -> Plot b #

return :: a -> Plot a #

fail :: String -> Plot a #

Functor Plot Source # 

Methods

fmap :: (a -> b) -> Plot a -> Plot b #

(<$) :: a -> Plot b -> Plot a #

Applicative Plot Source # 

Methods

pure :: a -> Plot a #

(<*>) :: Plot (a -> b) -> Plot a -> Plot b #

(*>) :: Plot a -> Plot b -> Plot b #

(<*) :: Plot a -> Plot b -> Plot a #

Simple Plot Source # 

Methods

simple :: Plot () -> Plot ()

Colour

setPlotBackgroundColour :: Color -> Plot () Source #

set the plot background colour

Plot elements

setBorder :: Border -> Plot () Source #

whether to draw a boundary around the plot area

setPlotPadding :: Double -> Double -> Double -> Double -> Plot () Source #

set the padding of the subplot

withHeading :: Text () -> Plot () Source #

set the heading of the subplot

Series data

class Abscissa a Source #

Minimal complete definition

toAbscissa

Instances

Abscissa Series Source # 

Methods

toAbscissa :: Series -> Abscissae

class Ordinate a Source #

Minimal complete definition

toOrdinate

Instances

Ordinate VectorFunction Source # 

Methods

toOrdinate :: VectorFunction -> Ordinates

Ordinate Function Source # 

Methods

toOrdinate :: Function -> Ordinates

Ordinate Series Source # 

Methods

toOrdinate :: Series -> Ordinates

Ordinate (VectorFunction, SeriesLabel) Source # 

Methods

toOrdinate :: (VectorFunction, SeriesLabel) -> Ordinates

Ordinate (VectorFunction, AxisSide) Source # 

Methods

toOrdinate :: (VectorFunction, AxisSide) -> Ordinates

Ordinate (Function, SeriesLabel) Source # 

Methods

toOrdinate :: (Function, SeriesLabel) -> Ordinates

Ordinate (Function, AxisSide) Source # 

Methods

toOrdinate :: (Function, AxisSide) -> Ordinates

Ordinate (MinMaxSeries, (ErrorSeries, ErrorSeries)) Source # 

Methods

toOrdinate :: (MinMaxSeries, (ErrorSeries, ErrorSeries)) -> Ordinates

Ordinate (Series, (ErrorSeries, ErrorSeries)) Source # 

Methods

toOrdinate :: (Series, (ErrorSeries, ErrorSeries)) -> Ordinates

Ordinate (Series, SeriesLabel) Source # 

Methods

toOrdinate :: (Series, SeriesLabel) -> Ordinates

Ordinate (Series, ErrorSeries) Source # 

Methods

toOrdinate :: (Series, ErrorSeries) -> Ordinates

Ordinate (Series, AxisSide) Source # 

Methods

toOrdinate :: (Series, AxisSide) -> Ordinates

Ordinate (VectorFunction, AxisSide, SeriesLabel) Source # 

Methods

toOrdinate :: (VectorFunction, AxisSide, SeriesLabel) -> Ordinates

Ordinate (Function, AxisSide, SeriesLabel) Source # 

Methods

toOrdinate :: (Function, AxisSide, SeriesLabel) -> Ordinates

Ordinate (MinMaxSeries, (ErrorSeries, ErrorSeries), AxisSide) Source # 
Ordinate (Series, (ErrorSeries, ErrorSeries), SeriesLabel) Source # 

Methods

toOrdinate :: (Series, (ErrorSeries, ErrorSeries), SeriesLabel) -> Ordinates

Ordinate (Series, (ErrorSeries, ErrorSeries), AxisSide) Source # 

Methods

toOrdinate :: (Series, (ErrorSeries, ErrorSeries), AxisSide) -> Ordinates

Ordinate (Series, ErrorSeries, SeriesLabel) Source # 

Methods

toOrdinate :: (Series, ErrorSeries, SeriesLabel) -> Ordinates

Ordinate (Series, ErrorSeries, AxisSide) Source # 

Methods

toOrdinate :: (Series, ErrorSeries, AxisSide) -> Ordinates

Ordinate (Series, AxisSide, SeriesLabel) Source # 

Methods

toOrdinate :: (Series, AxisSide, SeriesLabel) -> Ordinates

Ordinate (MinMaxSeries, (ErrorSeries, ErrorSeries), AxisSide, SeriesLabel) Source # 
Ordinate (Series, (ErrorSeries, ErrorSeries), AxisSide, SeriesLabel) Source # 
Ordinate (Series, ErrorSeries, AxisSide, SeriesLabel) Source # 

Methods

toOrdinate :: (Series, ErrorSeries, AxisSide, SeriesLabel) -> Ordinates

class Dataset a Source #

Minimal complete definition

toDataSeries

Instances

Dataset Surface Source # 

Methods

toDataSeries :: Surface -> Data DataSeries

Abscissa a => Dataset [(a, FormattedSeries)] Source # 

Methods

toDataSeries :: [(a, FormattedSeries)] -> Data DataSeries

(Abscissa a, Ordinate b) => Dataset [(SeriesType, a, b)] Source # 

Methods

toDataSeries :: [(SeriesType, a, b)] -> Data DataSeries

Dataset [FormattedSeries] Source # 

Methods

toDataSeries :: [FormattedSeries] -> Data DataSeries

Abscissa a => Dataset (a, [FormattedSeries]) Source # 

Methods

toDataSeries :: (a, [FormattedSeries]) -> Data DataSeries

Ordinate a => Dataset (SeriesType, [a]) Source # 

Methods

toDataSeries :: (SeriesType, [a]) -> Data DataSeries

(Abscissa a, Ordinate b) => Dataset (SeriesType, a, [b]) Source # 

Methods

toDataSeries :: (SeriesType, a, [b]) -> Data DataSeries

type FormattedSeries = Data DecoratedSeries Source #

data SeriesType Source #

Instances

(Abscissa a, Ordinate b) => Dataset [(SeriesType, a, b)] Source # 

Methods

toDataSeries :: [(SeriesType, a, b)] -> Data DataSeries

Ordinate a => Dataset (SeriesType, [a]) Source # 

Methods

toDataSeries :: (SeriesType, [a]) -> Data DataSeries

(Abscissa a, Ordinate b) => Dataset (SeriesType, a, [b]) Source # 

Methods

toDataSeries :: (SeriesType, a, [b]) -> Data DataSeries

bar :: (Ordinate a, BarFormat b) => a -> b -> FormattedSeries Source #

setDataset :: Dataset a => a -> Plot () Source #

set the data series of the subplot

The data series are either FormattedSeries or plain data series. A plain data series must carry a SeriesType.

A dataset may or may not have an abscissa series, and if so, it is paired with either a list of ordinate series or a single ordinate series.

The abscissa series (if present) is of type 'Vector Double'.

An ordinate series be a function (Double -> Double) or a series of points, a 'Vector Double' with optional error series, y axis preference, and labels.

To specify decoration options for an ordinate series, use the appropriate function, such as linespoints, with the ordinate series and decoration formatting (LineFormat, PointFormat, and BarFormat) as arguments.

setDataset (ts,[linespoints (xs,(le,ue),Upper,"data") (([Dash,Dash],3,blue),(Diamond,green))])

has abscissa ts paired with a list of ordinate series, the single element of which is a FormattedSeries, linespoints where the ordinate is xs with error series le and ue, to be graphed against the upper y-range with label "data". The line element is formatted to be dashed, of width 3, and blue and the point element is to be a green diamond.

Annotations

type Head = Bool Source #

type Fill = Bool Source #

data Annote a Source #

Instances

Monad Annote Source # 

Methods

(>>=) :: Annote a -> (a -> Annote b) -> Annote b #

(>>) :: Annote a -> Annote b -> Annote b #

return :: a -> Annote a #

fail :: String -> Annote a #

Functor Annote Source # 

Methods

fmap :: (a -> b) -> Annote a -> Annote b #

(<$) :: a -> Annote b -> Annote a #

Applicative Annote Source # 

Methods

pure :: a -> Annote a #

(<*>) :: Annote (a -> b) -> Annote a -> Annote b #

(*>) :: Annote a -> Annote b -> Annote b #

(<*) :: Annote a -> Annote b -> Annote a #

arrow :: Head -> Location -> Location -> Line () -> Annote () Source #

add an arrow

oval :: Fill -> Location -> Location -> Bar () -> Annote () Source #

add an oval

rect :: Fill -> Location -> Location -> Bar () -> Annote () Source #

add a rectangle

glyph :: Location -> Point () -> Annote () Source #

add a rectangle

text :: Location -> Text () -> Annote () Source #

add text

cairo :: (Double -> Double -> Double -> Double -> Render ()) -> Annote () Source #

add a cairo render that takes the bounding box (in user coordinates) as an argument

Plot type

setSeriesType :: Int -> SeriesType -> Plot () Source #

set the plot type of a given data series

setAllSeriesTypes :: SeriesType -> Plot () Source #

change the plot type of all data series

Formatting

class PlotFormats m Source #

Minimal complete definition

modifyFormat

Instances

PlotFormats Bar Source # 

Methods

modifyFormat :: Bar () -> DecoratedSeries -> Data DecoratedSeries

PlotFormats Line Source # 

Methods

modifyFormat :: Line () -> DecoratedSeries -> Data DecoratedSeries

PlotFormats Point Source # 

Methods

modifyFormat :: Point () -> DecoratedSeries -> Data DecoratedSeries

withSeriesFormat :: PlotFormats m => Int -> m () -> Plot () Source #

format the plot elements of a given series

withAllSeriesFormats :: PlotFormats m => (Int -> m ()) -> Plot () Source #

format the plot elements of all series

the operation to modify the formats is passed the series index. This allows, for example, colours to be selected from a list that gets indexed by the argument

setColour = withAllSeriesFormats (\i -> do
                                        setLineColour $ [black,blue,red,green,yellow] !! i
                                        setLineWidth 1.0)

Range

data Scale Source #

Constructors

Linear 
Log 

Instances

Eq Scale Source # 

Methods

(==) :: Scale -> Scale -> Bool #

(/=) :: Scale -> Scale -> Bool #

setRange :: AxisType -> AxisSide -> Scale -> Double -> Double -> Plot () Source #

set the axis range

setRangeFromData :: AxisType -> AxisSide -> Scale -> Plot () Source #

set the axis ranges to values based on dataset

Axes

data Axis a Source #

Instances

Monad Axis Source # 

Methods

(>>=) :: Axis a -> (a -> Axis b) -> Axis b #

(>>) :: Axis a -> Axis b -> Axis b #

return :: a -> Axis a #

fail :: String -> Axis a #

Functor Axis Source # 

Methods

fmap :: (a -> b) -> Axis a -> Axis b #

(<$) :: a -> Axis b -> Axis a #

Applicative Axis Source # 

Methods

pure :: a -> Axis a #

(<*>) :: Axis (a -> b) -> Axis a -> Axis b #

(*>) :: Axis a -> Axis b -> Axis b #

(<*) :: Axis a -> Axis b -> Axis a #

data AxisType Source #

Constructors

XAxis 
YAxis 

Instances

data AxisSide Source #

Constructors

Lower 
Upper 

Instances

Eq AxisSide Source # 
Ordinate (VectorFunction, AxisSide) Source # 

Methods

toOrdinate :: (VectorFunction, AxisSide) -> Ordinates

Ordinate (Function, AxisSide) Source # 

Methods

toOrdinate :: (Function, AxisSide) -> Ordinates

Ordinate (Series, AxisSide) Source # 

Methods

toOrdinate :: (Series, AxisSide) -> Ordinates

Ordinate (VectorFunction, AxisSide, SeriesLabel) Source # 

Methods

toOrdinate :: (VectorFunction, AxisSide, SeriesLabel) -> Ordinates

Ordinate (Function, AxisSide, SeriesLabel) Source # 

Methods

toOrdinate :: (Function, AxisSide, SeriesLabel) -> Ordinates

Ordinate (MinMaxSeries, (ErrorSeries, ErrorSeries), AxisSide) Source # 
Ordinate (Series, (ErrorSeries, ErrorSeries), AxisSide) Source # 

Methods

toOrdinate :: (Series, (ErrorSeries, ErrorSeries), AxisSide) -> Ordinates

Ordinate (Series, ErrorSeries, AxisSide) Source # 

Methods

toOrdinate :: (Series, ErrorSeries, AxisSide) -> Ordinates

Ordinate (Series, AxisSide, SeriesLabel) Source # 

Methods

toOrdinate :: (Series, AxisSide, SeriesLabel) -> Ordinates

Ordinate (MinMaxSeries, (ErrorSeries, ErrorSeries), AxisSide, SeriesLabel) Source # 
Ordinate (Series, (ErrorSeries, ErrorSeries), AxisSide, SeriesLabel) Source # 
Ordinate (Series, ErrorSeries, AxisSide, SeriesLabel) Source # 

Methods

toOrdinate :: (Series, ErrorSeries, AxisSide, SeriesLabel) -> Ordinates

data AxisPosn Source #

Constructors

Side AxisSide 
Value Double 

Instances

clearAxes :: Plot () Source #

clear the axes of a subplot

clearAxis :: AxisType -> AxisPosn -> Plot () Source #

clear an axis of a subplot

addAxis :: AxisType -> AxisPosn -> Axis () -> Plot () Source #

add an axis to the subplot

withAxis :: AxisType -> AxisPosn -> Axis () -> Plot () Source #

operate on the given axis

BarSetting

Data Sampling

Legend

data Legend a Source #

Instances

Monad Legend Source # 

Methods

(>>=) :: Legend a -> (a -> Legend b) -> Legend b #

(>>) :: Legend a -> Legend b -> Legend b #

return :: a -> Legend a #

fail :: String -> Legend a #

Functor Legend Source # 

Methods

fmap :: (a -> b) -> Legend a -> Legend b #

(<$) :: a -> Legend b -> Legend a #

Applicative Legend Source # 

Methods

pure :: a -> Legend a #

(<*>) :: Legend (a -> b) -> Legend a -> Legend b #

(*>) :: Legend a -> Legend b -> Legend b #

(<*) :: Legend a -> Legend b -> Legend a #

clearLegend :: Plot () Source #

clear the legend

setLegend :: LegendBorder -> LegendLocation -> LegendOrientation -> Plot () Source #

set the legend location and orientation

withLegendFormat :: Text () -> Plot () Source #

format the legend text

Formatting

data Tick Source #

Constructors

Minor 
Major 

Instances

Eq Tick Source # 

Methods

(==) :: Tick -> Tick -> Bool #

(/=) :: Tick -> Tick -> Bool #

setTicks :: Tick -> TickValues -> Axis () Source #

format the axis ticks

setGridlines :: Tick -> GridLines -> Axis () Source #

should gridlines be displayed?

setTickLabelFormat :: TickFormat -> Axis () Source #

set the tick label format

setTickLabels :: [String] -> Axis () Source #

a list of data labels

withTickLabelsFormat :: Text () -> Axis () Source #

format the tick labels

withAxisLabel :: Text () -> Axis () Source #

operate on the axis label

withAxisLine :: Line () -> Axis () Source #

format the axis line

withGridLine :: Tick -> Line () -> Axis () Source #

format the grid lines

Lines

data Line a Source #

Instances

Monad Line Source # 

Methods

(>>=) :: Line a -> (a -> Line b) -> Line b #

(>>) :: Line a -> Line b -> Line b #

return :: a -> Line a #

fail :: String -> Line a #

Functor Line Source # 

Methods

fmap :: (a -> b) -> Line a -> Line b #

(<$) :: a -> Line b -> Line a #

Applicative Line Source # 

Methods

pure :: a -> Line a #

(<*>) :: Line (a -> b) -> Line a -> Line b #

(*>) :: Line a -> Line b -> Line b #

(<*) :: Line a -> Line b -> Line a #

PlotFormats Line Source # 

Methods

modifyFormat :: Line () -> DecoratedSeries -> Data DecoratedSeries

class LineFormat a Source #

Minimal complete definition

toLine

Instances

LineFormat LineWidth Source # 

Methods

toLine :: (MonadReader Options m, MonadSupply SupplyData m) => LineWidth -> m LineType

LineFormat DashStyle Source # 

Methods

toLine :: (MonadReader Options m, MonadSupply SupplyData m) => DashStyle -> m LineType

Real a => LineFormat (Colour a) Source # 

Methods

toLine :: (MonadReader Options m, MonadSupply SupplyData m) => Colour a -> m LineType

Real a => LineFormat (LineWidth, Colour a) Source # 

Methods

toLine :: (MonadReader Options m, MonadSupply SupplyData m) => (LineWidth, Colour a) -> m LineType

Real a => LineFormat (DashStyle, Colour a) Source # 

Methods

toLine :: (MonadReader Options m, MonadSupply SupplyData m) => (DashStyle, Colour a) -> m LineType

LineFormat (DashStyle, LineWidth) Source # 

Methods

toLine :: (MonadReader Options m, MonadSupply SupplyData m) => (DashStyle, LineWidth) -> m LineType

Real a => LineFormat (DashStyle, LineWidth, Colour a) Source # 

Methods

toLine :: (MonadReader Options m, MonadSupply SupplyData m) => (DashStyle, LineWidth, Colour a) -> m LineType

data Dash Source #

Constructors

Dot 
Dash 

Instances

Eq Dash Source # 

Methods

(==) :: Dash -> Dash -> Bool #

(/=) :: Dash -> Dash -> Bool #

LineFormat DashStyle Source # 

Methods

toLine :: (MonadReader Options m, MonadSupply SupplyData m) => DashStyle -> m LineType

Real a => LineFormat (DashStyle, Colour a) Source # 

Methods

toLine :: (MonadReader Options m, MonadSupply SupplyData m) => (DashStyle, Colour a) -> m LineType

LineFormat (DashStyle, LineWidth) Source # 

Methods

toLine :: (MonadReader Options m, MonadSupply SupplyData m) => (DashStyle, LineWidth) -> m LineType

Real a => LineFormat (DashStyle, LineWidth, Colour a) Source # 

Methods

toLine :: (MonadReader Options m, MonadSupply SupplyData m) => (DashStyle, LineWidth, Colour a) -> m LineType

clearLineFormat :: Line () Source #

clear the formatting of a line

setDashStyle :: DashStyle -> Line () Source #

change the dash style of a line

setLineWidth :: LineWidth -> Line () Source #

change the line width of a line

setLineColour :: Color -> Line () Source #

change the line colour of a line

Points

data Point a Source #

Instances

Monad Point Source # 

Methods

(>>=) :: Point a -> (a -> Point b) -> Point b #

(>>) :: Point a -> Point b -> Point b #

return :: a -> Point a #

fail :: String -> Point a #

Functor Point Source # 

Methods

fmap :: (a -> b) -> Point a -> Point b #

(<$) :: a -> Point b -> Point a #

Applicative Point Source # 

Methods

pure :: a -> Point a #

(<*>) :: Point (a -> b) -> Point a -> Point b #

(*>) :: Point a -> Point b -> Point b #

(<*) :: Point a -> Point b -> Point a #

PlotFormats Point Source # 

Methods

modifyFormat :: Point () -> DecoratedSeries -> Data DecoratedSeries

class PointFormat a Source #

Minimal complete definition

toPoint

Instances

PointFormat Glyph Source # 

Methods

toPoint :: (MonadReader Options m, MonadSupply SupplyData m) => Glyph -> m PointType

Real a => PointFormat (Colour a) Source # 

Methods

toPoint :: (MonadReader Options m, MonadSupply SupplyData m) => Colour a -> m PointType

Real a => PointFormat (Glyph, Colour a) Source # 

Methods

toPoint :: (MonadReader Options m, MonadSupply SupplyData m) => (Glyph, Colour a) -> m PointType

PointFormat (Glyph, PointSize) Source # 

Methods

toPoint :: (MonadReader Options m, MonadSupply SupplyData m) => (Glyph, PointSize) -> m PointType

Real a => PointFormat (Glyph, PointSize, Colour a) Source # 

Methods

toPoint :: (MonadReader Options m, MonadSupply SupplyData m) => (Glyph, PointSize, Colour a) -> m PointType

data Glyph Source #

Instances

PointFormat Glyph Source # 

Methods

toPoint :: (MonadReader Options m, MonadSupply SupplyData m) => Glyph -> m PointType

Real a => PointFormat (Glyph, Colour a) Source # 

Methods

toPoint :: (MonadReader Options m, MonadSupply SupplyData m) => (Glyph, Colour a) -> m PointType

PointFormat (Glyph, PointSize) Source # 

Methods

toPoint :: (MonadReader Options m, MonadSupply SupplyData m) => (Glyph, PointSize) -> m PointType

Real a => PointFormat (Glyph, PointSize, Colour a) Source # 

Methods

toPoint :: (MonadReader Options m, MonadSupply SupplyData m) => (Glyph, PointSize, Colour a) -> m PointType

setGlyph :: Glyph -> Point () Source #

change the glyph of a point

setPointSize :: PointSize -> Point () Source #

change the size of a point

setPointColour :: Color -> Point () Source #

change the colour of a point

Bars

data Bar a Source #

Instances

Monad Bar Source # 

Methods

(>>=) :: Bar a -> (a -> Bar b) -> Bar b #

(>>) :: Bar a -> Bar b -> Bar b #

return :: a -> Bar a #

fail :: String -> Bar a #

Functor Bar Source # 

Methods

fmap :: (a -> b) -> Bar a -> Bar b #

(<$) :: a -> Bar b -> Bar a #

Applicative Bar Source # 

Methods

pure :: a -> Bar a #

(<*>) :: Bar (a -> b) -> Bar a -> Bar b #

(*>) :: Bar a -> Bar b -> Bar b #

(<*) :: Bar a -> Bar b -> Bar a #

PlotFormats Bar Source # 

Methods

modifyFormat :: Bar () -> DecoratedSeries -> Data DecoratedSeries

class BarFormat a Source #

Minimal complete definition

toBar

Instances

Real a => BarFormat (Colour a) Source # 

Methods

toBar :: (MonadReader Options m, MonadSupply SupplyData m) => Colour a -> m BarType

clearBarFormat :: Bar () Source #

clear the formatting of a line

setBarWidth :: Width -> Bar () Source #

set the width of the bar

setBarColour :: Color -> Bar () Source #

set the colour of the bar

setBarBorderWidth :: LineWidth -> Bar () Source #

set the width of the bar border

setBarBorderColour :: Color -> Bar () Source #

set the colour of the bar border

Text labels

data Text a Source #

Instances

Monad Text Source # 

Methods

(>>=) :: Text a -> (a -> Text b) -> Text b #

(>>) :: Text a -> Text b -> Text b #

return :: a -> Text a #

fail :: String -> Text a #

Functor Text Source # 

Methods

fmap :: (a -> b) -> Text a -> Text b #

(<$) :: a -> Text b -> Text a #

Applicative Text Source # 

Methods

pure :: a -> Text a #

(<*>) :: Text (a -> b) -> Text a -> Text b #

(*>) :: Text a -> Text b -> Text b #

(<*) :: Text a -> Text b -> Text a #

A text element must exist for formatting to work

clearText :: Text () Source #

clear the text entry

clearTextFormat :: Text () Source #

set the text formatting to the default

setText :: String -> Text () Source #

set the value of a text entry

setFontFamily :: FontFamily -> Text () Source #

set the font style of a text entry

setFontStyle :: FontStyle -> Text () Source #

set the font style of a text entry

setFontVariant :: Variant -> Text () Source #

set the font variant of a text entry

setFontWeight :: Weight -> Text () Source #

set the font weight of a text entry

setFontStretch :: Stretch -> Text () Source #

set the font stretch of a text entry

setFontSize :: FontSize -> Text () Source #

set the font size of a text entry

setFontColour :: Color -> Text () Source #

set the colour of a text entry