plotex v0.1.2 Plotex

Documentation for Plotex.

TODO

Link to this section Summary

Functions

Generates a stream of the data points (ticks) for a given axis.

Find the appropriate limits given an enumerable of datasets.

Create a Plotex struct for given datasets and configuration. Will load and scan data for all input datasets.

Returns of scaled data for both X & Y coordinates for a given {X,Y} dataset.

Find the maximum and minumun points for a given line of data.

Returns a stream of scaled data points zipped with the original points.

Link to this section Types

Link to this type

t()
t() :: %Plotex{
  config: Plotex.Config.t(),
  datasets: Enumerable.t(),
  xticks: Enumerable.t(),
  yticks: Enumerable.t()
}

Link to this section Functions

Link to this function

generate_axis(axis)

Generates a stream of the data points (ticks) for a given axis.

Link to this function

limits(datasets, opts \\ [])

Find the appropriate limits given an enumerable of datasets.

For example, given {[1,2,3,4], [0.4,0.3,0.2,0.1]} will find the X limits 1..4 and the Y limits of 0.1..0.4.

Link to this function

plot(datasets, opts \\ [])
plot([[{number(), number()}]], nil | keyword() | map()) :: Plotex.t()

Create a Plotex struct for given datasets and configuration. Will load and scan data for all input datasets.

Link to this function

plot_data(arg, xaxis, yaxis)

Returns of scaled data for both X & Y coordinates for a given {X,Y} dataset.

Link to this function

range_from(data)

Find the maximum and minumun points for a given line of data.

Link to this function

scale_data(data, axis)

Returns a stream of scaled data points zipped with the original points.