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

Implementation of PNG image plotter via high-resolution vector rendering. More...

#include "plotters/PngPlotter.hpp"
#include "plotters/SvgComparisonRenderer.hpp"
#include "plotters/SvgHistogramRenderer.hpp"
#include <fstream>
#include <stdexcept>
Include dependency graph for PngPlotter.cpp:

Namespaces

namespace  correlation
namespace  correlation::plotters

Functions

void correlation::plotters::renderHistogramAsPng (const correlation::analysis::Histogram &hist, const std::string &filepath, const PlotConfig &config={}, const std::map< std::string, real_t > &ashcroft_weights={}, int dpi=300)
 Renders a single histogram dataset as a high-resolution PNG image.
void correlation::plotters::renderComparisonPng (const std::vector< LabeledHistogram > &datasets, const std::string &partial_key, const std::string &filepath, const PlotConfig &config={}, int dpi=300)
 Renders multiple comparison histograms as a high-resolution PNG image.

Detailed Description

Implementation of PNG image plotter via high-resolution vector rendering.

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