-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcppplot.hpp
More file actions
48 lines (41 loc) · 1.02 KB
/
cppplot.hpp
File metadata and controls
48 lines (41 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* @file cppplot.hpp
* @brief Main header file for CppPlot library
*
* CppPlot - A Matplotlib-style Plotting Library for C++
*
* Include this single header to access all CppPlot functionality.
*
* @example
* #include <cppplot/cppplot.hpp>
* using namespace cppplot;
*
* int main() {
* std::vector<double> x = {1, 2, 3, 4, 5};
* std::vector<double> y = {1, 4, 9, 16, 25};
* plot(x, y, "b-o");
* savefig("plot.svg");
* return 0;
* }
*/
#ifndef CPPPLOT_CPPPLOT_HPP
#define CPPPLOT_CPPPLOT_HPP
#define CPPPLOT_VERSION_MAJOR 1
#define CPPPLOT_VERSION_MINOR 0
#define CPPPLOT_VERSION_PATCH 0
#define CPPPLOT_VERSION "1.0.0"
// Core components
#include "core/types.hpp"
#include "core/color.hpp"
#include "core/style.hpp"
#include "core/utils.hpp"
#include "core/matrix.hpp"
// Figure and Axes
#include "figure.hpp"
#include "axes.hpp"
// Backends
#include "backends/backend.hpp"
#include "backends/svg_backend.hpp"
// High-level API (pyplot-style)
#include "pyplot.hpp"
#endif // CPPPLOT_CPPPLOT_HPP