WARNING: This library is a work in progress!
Header-only.
Compile examples with C++14 support; link with -lm
(gcc/libstdc++ >= 4.9
required; tested with gcc 4.9, gcc 6.0 and clang 3.9). The library tries
to detect terminal capabilities automatically; a xterm-compatible terminal
is recommended.
A CMake build environment is provided which will build examples and optionally pack headers into a single header library.
Please note that non-POSIX platforms (e.g. Windows) are currently not supported and compilation for them will fail.
pack.py
is a python script which can pack all headers into a
single-header library. The following command will generate a
header file (plot_lib.hpp
) ready for inclusion in other projects.
./pack.py plot.hpp > plot_lib.hpp
The script will be run automatically by the CMake build system when the
BUILD_SINGLE_HEADER
option is set. A file named plot.hpp
will be created
in the build dir. A working Python 3 installation is required.
The MIT License
Copyright © 2016 Fabio Massaioli
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.