Chi-SquaredFit v1.0.0-beta.1 Gnuplotlib View Source

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

Link to this type datapoint() View Source
datapoint() ::
  {x :: number(), y :: number(), ylow :: number(), yhigh :: number()}

Link to this section Functions

Link to this function capture(out \\ <<>>) View Source
capture(out :: binary()) :: binary()

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

Link to this function ecdf(data, options) View Source
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

`: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
histogram(data :: [number()], options :: Keyword.t()) :: none()

Draws a histogram of the data.

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
multi(all :: [{command :: [], data :: []}], options :: Keyword.t()) :: none()

Plots severals graphs in a multi-plot.

Link to this function pdf(data, options) View Source
pdf(data :: [number()], options :: Keyword.t()) :: none()

Draws a graph of the PDF.

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,
`:pdf` - the data to use for the PDF curve as a list of `[x,y]`,
`:title` - the title to use for the PDF curve.