Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
Preconfigured setup for data visualisation with Gnuplot.
The visualisation tool gnuplot allows for simple data visualisation in various formats, integrated into a *NIX commandline work environment.
The namespace lib::gnuplot_gen allows to generate diagrams relying on some common layout schemes, which can be customised. Data is passed in as CSV string; the generated Gnuplot script adapts dynamically to the number of data columns given, where the first column always holds the common x-axis values. Additional parameters can be added to the data binding used for script generation; this binding is comprised of key = value settings in a Rec<GenNode>
(Lumiera's »ETD« format for structural data)
Definition in file gnuplot-gen.hpp.
#include "lib/stat/csv.hpp"
#include "lib/format-util.hpp"
#include "lib/diff/gen-node.hpp"
#include <string>
#include <vector>
#include <tuple>
Typedefs | |
using | ParamRecord = diff::Rec::Mutator |
< preconfigured setup for Gnuplot data visualisation | |
Functions | |
string | dataPlot (string csvData) |
string | dataPlot (ParamRecord) |
Generate a Gnuplot diagram to visualise the given data points. More... | |
string | scatterRegression (string csvData) |
string | scatterRegression (ParamRecord) |
Generate a (X,Y)-scatter plot with regression line. More... | |
Namespaces | |
lib | |
Implementation namespace for support and library code. | |
string dataPlot | ( | ParamRecord | params | ) |
Generate a Gnuplot diagram to visualise the given data points.
Definition at line 250 of file gnuplot-gen.cpp.
References lib::gnuplot_gen::dataPlot().
Referenced by lib::gnuplot_gen::dataPlot().
string scatterRegression | ( | ParamRecord | params | ) |
Generate a (X,Y)-scatter plot with regression line.
[1:2]
and showed in the primary display, adding a regression line. When further columns are given, a multiplot
layout is established, showing those additional related series in a second diagram below. It may be necessary to define a larger canvas with different aspect ratio, which is possibly using the placeholder #KEY_TermSize Definition at line 274 of file gnuplot-gen.cpp.
References lib::gnuplot_gen::scatterRegression().
Referenced by lib::gnuplot_gen::scatterRegression().