View Source Chi2fit.Gnuplotlib (Chi-SquaredFit v2.0.2)

Provides various various plots using the Gnuplot package.

Link to this section Summary

Functions

Captures the output sent by &Port.open/2 and returns it as a binary

Draws a graph of the empirical CDF as steps, the data points with error bars, and the (fitted) function.

Draws a histogram of the data.

Plots severals graphs in a multi-plot.

Draws a graph of the PDF.

Link to this section Types

@type datapoint() ::
  {x :: number(), y :: number(), ylow :: number(), yhigh :: number()}

Link to this section Functions

@spec capture(out :: binary()) :: binary()

Captures the output sent by &Port.open/2 and returns it as a binary

@spec ecdf(data :: [datapoint()], options :: Keyword.t()) :: none()

Draws a graph of the empirical CDF as steps, the data points with error bars, and the (fitted) function.

options

Options

`:bin` - the size of the bins to use,
`:plottitle` - the title of the plot,
`:xrange`- the range for the x-values to use in the format '[x1:x2]'
`:xrange` - the range for the y-values to use in the format '[y1:y2]'
`:xlabel` - the label to use for the x-axis,
`:ylabel` - the label to use for the y-axis,
`:func` - the data to use for the CDF curve as a list of `[x,y]`,
`:title` - the title to use for the CDF curve.
`:bounds` - 2-tuple of functions describing the minimum and maximum error-curves for the CDF
Link to this function

histogram(data, options \\ [])

View Source
@spec histogram(data :: [number()], options :: Keyword.t()) :: none()

Draws a histogram of the data.

options

Options

`:bin` - the size of the bins to use,
`:plottitle` - the title of the plot,
`:xrange` - the range for the x-values to use in the format '[x1:x2]'
`:xrange` - the range for the y-values to use in the format '[y1:y2]'
`:xlabel` - the label to use for the x-axis,
`:ylabel` - the label to use for the y-axis.
Link to this function

multi(all, options \\ [])

View Source
@spec multi(all :: [{command :: [], data :: []}], options :: Keyword.t()) :: none()

Plots severals graphs in a multi-plot.

@spec pdf(data :: [number()], options :: Keyword.t()) :: none()

Draws a graph of the PDF.

options

Options

`:bin` - the size of the bins to use,
`:offset` -- the offset of the bin,
`:plottitle` - the title of the plot,
`:noerror` -- no error bars,
`:xrange` - the range for the x-values to use in the format '[x1:x2]'
`:xrange` - the range for the y-values to use in the format '[y1:y2]'
`:xlabel` - the label to use for the x-axis,
`:ylabel` - the label to use for the y-axis,
`:pdf` - the data to use for the PDF curve as a list of `[x,y]`,
`:title` - the title to use for the PDF curve.
@spec surface(data :: [[number()]], options :: Keyword.t()) :: none()