GnuplotEx.Version (gnuplot_ex v0.5.1)

Gnuplot version detection and validation.

GnuplotEx requires Gnuplot 6.0 or later for full functionality.

Summary

Functions

Check if the installed gnuplot version meets the minimum requirement.

Get the installed gnuplot version.

Get the minimum required gnuplot version.

Functions

check()

@spec check() :: {:ok, String.t()} | {:error, term()}

Check if the installed gnuplot version meets the minimum requirement.

Returns {:ok, version_string} if version >= 6.0.0, or {:error, reason}.

Example

iex> GnuplotEx.Version.check()
{:ok, "6.0.0"}

iex> GnuplotEx.Version.check()
{:error, {:version_too_old, "5.4.0", "6.0.0"}}

get()

@spec get() :: {:ok, String.t()} | {:error, term()}

Get the installed gnuplot version.

Returns {:ok, version_string} or {:error, reason}.

Example

iex> GnuplotEx.Version.get()
{:ok, "6.0.0"}

minimum()

@spec minimum() :: String.t()

Get the minimum required gnuplot version.

Example

iex> GnuplotEx.Version.minimum()
"6.0.0"