Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
SvgHistogramRenderer.cpp File Reference

Implementation of single-histogram vector rendering for the SVG plotter. More...

#include "plotters/SvgHistogramRenderer.hpp"
#include "analysis/DistributionFunctions.hpp"
#include "plotters/PathFont.hpp"
#include "plotters/PlotTypes.hpp"
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <format>
#include <iterator>
#include <map>
#include <optional>
#include <ranges>
#include <span>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
Include dependency graph for SvgHistogramRenderer.cpp:

Namespaces

namespace  correlation
namespace  correlation::plotters
namespace  correlation::plotters::layout

Functions

std::string correlation::plotters::renderHistogramAsSvg (const correlation::analysis::Histogram &hist, const PlotConfig &config=PlotConfig(), const HoverInfo &hover=HoverInfo(), const std::map< std::string, real_t > &weights={}, const std::map< std::string, bool > &curve_visibility={}, const std::map< std::string, std::string > &custom_colors={})
 Renders a single Histogram as a self-contained SVG string.

Detailed Description

Implementation of single-histogram vector rendering for the SVG plotter.

License
SPDX-License-Identifier: AGPL-3.0-only