Skip to content
Snippets Groups Projects
Commit 0c8f86ea authored by Christian Iwainsky's avatar Christian Iwainsky
Browse files

added more python functions

parent e79a2869
No related branches found
No related tags found
No related merge requests found
......@@ -456,6 +456,16 @@ ObjectWrapper PyPlot::ylim(const pybind11::tuple &args,
return ObjectWrapper(std::move(ret));
}
PyPlot nonInteractiveImport(){
auto mod = pybind11::module::import("matplotlib.pyplot");
auto g_pyplot = PyPlot(mod);
auto abb = pybind11::module::import("matplotlib");
// use the agg backend
abb.attr("use")("Agg");
return g_pyplot;
}
PyPlot import() {
auto mod = pybind11::module::import("matplotlib.pyplot");
auto g_pyplot = PyPlot(mod);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment