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
t()
t() :: %Plotex{
config: Plotex.Config.t(),
datasets: Enumerable.t(),
xticks: Enumerable.t(),
yticks: Enumerable.t()
}
t() :: %Plotex{ config: Plotex.Config.t(), datasets: Enumerable.t(), xticks: Enumerable.t(), yticks: Enumerable.t() }
Link to this section Functions
generate_axis(axis)
Generates a stream of the data points (ticks) for a given axis.
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.
plot(datasets, opts \\ [])
Create a Plotex struct for given datasets and configuration. Will load and scan data for all input datasets.
plot_data(arg, xaxis, yaxis)
Returns of scaled data for both X & Y coordinates for a given {X,Y} dataset.
range_from(data)
Find the maximum and minumun points for a given line of data.
scale_data(data, axis)
Returns a stream of scaled data points zipped with the original points.