These instructions will provide a bazel target for matplot++.
- Add these lines to your
WORKSPACE
file:
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
new_git_repository(
name = "matplot",
branch = "master",
build_file = "//:BUILD.matplot",
remote = "https://github.com/alandefreitas/matplotplusplus",
)
- Copy the file
BUILD.matplot
to your workspace root.
You may now depend on @matplot
from other targets. Refer to files example.cpp
and BUILD
to inspect an exemplary usage.
- Note that matplot++ has certain system dependencies (e.g.
gnuplot
). - Only the
gnuplot
backend from matplot++ is supported. - Only the
X11
window system is supported.
Feel free to reach out if you have any suggestions for improvement. Thanks!