alias TitleFunction = Title delegate(Title)

delegate that takes a Title struct and returns a changed Title struct

public TitleFunction title(string title)

Draw the title

Examples

GGPlotD().put( title( "My title" ) );
public TitleFunction title(string[] title)

Draw the multiline title

Examples

GGPlotD().put( title( ["My title line1", "line2", "line3"] ) );
private auto drawTitle(
    in Title title, 
    ref cairo.Surface surface, 
    in Margins margins, 
    int width)
public ref auto putIn(T, U)(
    T t, 
    U u)

Put an element into a plot/facets struct

This basically reverses a call to put and allows one to write more idiomatic D code where code flows from left to right instead of right to left.

Examples

auto gg = data.aes.geomPoint.putIn(GGPlotD());
// instead of
auto gg = GGPlotD().put(geomPoint(aes(data)));

Aliases

TitleFunction
Title delegate(Title)

delegate that takes a Title struct and returns a changed Title struct

Functions

title

Draw the title

title

Draw the multiline title

private, autodrawTitle
ref, autoputIn

Put an element into a plot/facets struct

Structs

Title

Currently only holds the title. In the future could also be used to store details on location etc.

Margins

Specify margins in number of pixels

GGPlotD

GGPlotD contains the needed information to create a plot

Facets

Plot multiple (sub) plots