Common types, configuration structures, and palette/formatting utilities for SVG plotting.
More...
|
| real_t | correlation::plotters::sampleHistogramClamped (const std::vector< real_t > &x_bins, const std::vector< real_t > &y_vals, real_t x_val) |
| | Samples a 1D dataset y(x) at point x using linear interpolation with boundary clamping to [x_min, x_max].
|
| std::string | correlation::plotters::renderTextAsPath (const std::string &text, real_t x_pos, real_t y_pos, real_t size, TextAnchor anchor, std::string_view color, bool use_native_text=false) |
| | Renders text as a filled SVG path using the Roboto outline font. Uses evenodd fill-rule to render the font's inner holes properly.
|
| std::string | correlation::plotters::detail::interpolateColorStops (float position, std::span< const ColorStop > stops) |
| std::string | correlation::plotters::detail::sampleContinuousColormap (float position, PlotConfig::Palette pal) |
| std::string | correlation::plotters::detail::color (std::size_t index, std::size_t total_count, PlotConfig::Palette pal) |
| std::string | correlation::plotters::detail::color (std::size_t index, PlotConfig::Palette pal) |
| real_t | correlation::plotters::detail::mapValue (real_t value, real_t data_min, real_t data_max, real_t svg_min, real_t svg_max) |
| std::string | correlation::plotters::detail::fmtScientific (real_t value) |
| | Formats a number for SVG display, using scientific notation if needed.
|
| PlotViewportGeometry | correlation::plotters::detail::getViewportGeometry (const PlotConfig &config) |
| std::pair< real_t, real_t > | correlation::plotters::detail::screenToSvg (real_t screen_x, real_t screen_y, real_t widget_w, real_t widget_h, const PlotConfig &config) |
| std::pair< real_t, real_t > | correlation::plotters::detail::screenToData (real_t screen_x, real_t screen_y, real_t widget_w, real_t widget_h, const PlotConfig &config, const NiceScale &x_scale, const NiceScale &y_scale) |
| std::pair< real_t, real_t > | correlation::plotters::detail::svgToScreen (real_t svg_x, real_t svg_y, real_t widget_w, real_t widget_h, const PlotConfig &config) |
| std::pair< real_t, real_t > | correlation::plotters::detail::dataToScreen (real_t data_x, real_t data_y, real_t widget_w, real_t widget_h, const PlotConfig &config, const NiceScale &x_scale, const NiceScale &y_scale) |
Common types, configuration structures, and palette/formatting utilities for SVG plotting.
- Copyright
- Copyright © 2013-2026 Isaías Rodríguez (isurw.nosp@m.ars@.nosp@m.gmail.nosp@m..com)
- License
- SPDX-License-Identifier: AGPL-3.0-only