plot
Header-only C++ SVG charts — heatmap, line, scatter — GR-style API + Solarized themes
Loading...
Searching...
No Matches
tags.hpp
1
/* Copyright (c) 2026 Steven Varga, Toronto, ON, Canada
2
* MIT License — see LICENSE
3
*
4
* Empty tag types used to identify the order-independent named arguments of the
5
* SVG plotting layer. Ported from plot:: into plot::. Dependency-free.
6
*/
7
#ifndef PLOT_TAGS_HPP
8
#define PLOT_TAGS_HPP
9
10
namespace
plot::tag {
11
struct
width_t{};
12
struct
height_t{};
13
struct
position_t{};
14
struct
font_t{};
15
struct
color_t{};
16
struct
layout_t{};
17
struct
stroke_t{};
18
struct
opacity_t{};
19
struct
marker_t{};
20
namespace
axis {
21
struct
x_t{};
22
struct
y_t{};
23
}
24
struct
text_t{};
25
struct
title_t{};
26
struct
footnote_t{};
27
struct
legend_t{};
28
struct
id_t{};
29
struct
style_t{};
30
struct
degree_t{};
31
struct
radian_t{};
32
struct
cw_t{};
33
struct
ccw_t{};
34
struct
horizontal_t{};
35
struct
vertical_t{};
36
struct
margin_t{};
37
// GR.jl-style line/scatter named arguments
38
struct
xlabel_t{};
39
struct
ylabel_t{};
40
struct
xlog_t{};
41
struct
ylog_t{};
42
struct
theme_t{};
// per-call theme override (plot::use{...})
43
// deferred-plot composition (plot::view + plot::grid)
44
struct
view_t{};
// identifies a deferred view in a variadic grid(...)
45
struct
rows_t{};
// grid row count
46
struct
cols_t{};
// grid column count
47
// new plot-type named arguments (issue #6)
48
struct
bins_t{};
// histogram bin count
49
struct
bandwidth_t{};
// KDE bandwidth
50
struct
levels_t{};
// contour iso-level count
51
struct
hole_t{};
// pie/donut inner-radius hole fraction (0 = full pie)
52
struct
hex_t{};
// hexagonal heatmap style marker
53
struct
wireframe_t{};
// outline-only bars/bins (no fill) — issue #13
54
}
55
#endif
include
plot
tags.hpp
© 2018–2026 Steven Varga