View Source Tucan.Axes (tucan v0.1.1)
Utilities for configuring plot axes.
Summary
Functions
Sets an arbitrary set of options to the given encoding
axis object.
Set the title of the given axis
.
Sets the x axis scale.
Sets the x axis title.
Sets the x axis scale.
Sets the y axis title.
Types
@type axis() :: :x | :y
@type scale() :: :linear | :log | :symlog | :pow | :sqrt
Functions
@spec put_axis_options(vl :: VegaLite.t(), encoding :: atom(), options :: keyword()) :: VegaLite.t()
Sets an arbitrary set of options to the given encoding
axis object.
Notice that no validation is performed, any option set will be merged with
the existing axis
options of the given encoding
.
An ArgumentError
is raised if the x
encoding channel is not defined.
@spec set_title(vl :: VegaLite.t(), axis :: axis(), title :: binary()) :: VegaLite.t()
Set the title of the given axis
.
@spec set_x_scale(vl :: VegaLite.t(), scale :: scale()) :: VegaLite.t()
Sets the x axis scale.
@spec set_x_title(vl :: VegaLite.t(), title :: binary()) :: VegaLite.t()
Sets the x axis title.
@spec set_y_scale(vl :: VegaLite.t(), scale :: scale()) :: VegaLite.t()
Sets the x axis scale.
@spec set_y_title(vl :: VegaLite.t(), title :: binary()) :: VegaLite.t()
Sets the y axis title.