MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ label() [2/2]

Series & MayaFlux::Portal::Forma::Plot::Series::label ( std::string  text,
Kinesis::AABB2D  bounds,
glm::vec4  color = { 0.85F, 0.85F, 0.85F, 1.F },
std::string  name = {} 
)
inline

Add a construction-free text label to this plot.

Definition at line 302 of file SeriesBuilder.hpp.

305 { 0.85F, 0.85F, 0.85F, 1.F },
306 std::string name = {})
307 {
308 m_labels.push_back(plot_label(std::move(text), bounds, color, std::move(name)));
309 return *this;
310 }
Series & color(std::initializer_list< glm::vec3 > colors)
Append colors to the global palette.
Series & bounds(Kinesis::AABB2D bounds)
Set the logical plot/data bounds used by labels, tick labels, legends, and future plot adornments.
LabelSpec plot_label(std::string text, Kinesis::AABB2D bounds, glm::vec4 color, std::string name)
Create a single construction-free label spec.
Definition PlotSpec.cpp:222