Quartz.Plot2D (Quartz v0.8.1)
View SourceThe module responsible for drawing and customizing 2D plots.
Summary
Functions
Add bottom axis. Bottom axes are added below the axes already present.
Add left axis. Left axes are added to the left of the axes already present.
Add right axis. Right axes are added to the left of the axes already present.
Add a new item to the label. The item is identified by a symbol and a label.
Add top axis. Top axes are added below the axes already present.
Draw a series of line segments between the given points.
Draw a distribution using a kernel density estimate.
Draw a distribution using a kernel density estimate.
Draw a series of line segments between the given points.
Draw a scatter plot for the given points.
Set the bounds of a plot. If the bounds are not set, by default the plot will occupy the total space given to the figure.
Put legend location.
Set the style of the tick labels.
Types
@type t() :: %Quartz.Plot2D{ axes: term(), bottom: term(), bottom_content: term(), bottom_content_padding: term(), bottom_decorations_area: term(), bottom_left_decorations_area: term(), bottom_margin: term(), bottom_right_decorations_area: term(), bounds_set: term(), categorical_color_index: term(), categorical_color_map: term(), current_bottom_bound: term(), current_left_bound: term(), current_right_bound: term(), current_top_bound: term(), data_area: term(), has_legend: term(), id: term(), left: term(), left_content: term(), left_content_padding: term(), left_decorations_area: term(), left_margin: term(), legend_background: term(), legend_background_color: term(), legend_background_opacity: term(), legend_background_stroke_dash: term(), legend_background_stroke_paint: term(), legend_background_stroke_thickness: term(), legend_items: term(), legend_location: term(), padding_bottom: term(), padding_left: term(), padding_right: term(), padding_top: term(), plot_area: term(), right: term(), right_content: term(), right_content_padding: term(), right_decorations_area: term(), right_margin: term(), title: term(), title_alignment: term(), title_area: term(), title_inner_padding: term(), title_location: term(), top: term(), top_content: term(), top_content_padding: term(), top_decorations_area: term(), top_left_decorations_area: term(), top_margin: term(), top_right_decorations_area: term(), width_to_aspect_ratio: term() }
Functions
Add bottom axis. Bottom axes are added below the axes already present.
Add left axis. Left axes are added to the left of the axes already present.
Add right axis. Right axes are added to the left of the axes already present.
Add a new item to the label. The item is identified by a symbol and a label.
Add top axis. Top axes are added below the axes already present.
@spec align_bottom([any()]) :: :ok
@spec align_left([any()]) :: :ok
@spec align_right([any()]) :: :ok
@spec align_top([any()]) :: :ok
Draw a series of line segments between the given points.
Draw a distribution using a kernel density estimate.
Draw a distribution using a kernel density estimate.
Draw a series of line segments between the given points.
Draw a scatter plot for the given points.
@spec draw_text(t(), Quartz.Text.text(), Keyword.t()) :: t()
@spec fetch_axis(Plot2D.t(), binary()) :: {:ok, Quartz.Axis2D.t()} | :error
@spec fetch_axis(Plot2D.t(), binary()) :: Quartz.Axis2D.t()
@spec get_axis(Plot2D.t(), binary()) :: Quartz.Axis2D.t() | nil
@spec put_axis_label(t(), binary(), Quartz.Text.text(), number()) :: t()
@spec put_axis_scale(t(), binary(), Quartz.Scale.scale()) :: t()
Set the bounds of a plot. If the bounds are not set, by default the plot will occupy the total space given to the figure.
Expects bounds given as a keyword list or as a map.
Put legend location.
Valid locations:
:top:top_right:right:bottom_right:bottom:bottom_left:left
Set the style of the tick labels.