MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / terminal_is_available

Method terminal_is_available

source/matplot/backend/gnuplot.cpp:335–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333 }
334
335 bool gnuplot::terminal_is_available(std::string_view term) {
336 std::string msg = run_and_get_output("gnuplot -e \"set terminal " +
337 std::string(term.data()) + "\" 2>&1");
338 return msg.empty();
339 }
340
341 std::tuple<int, int, int> gnuplot::gnuplot_version() {
342 static std::tuple<int, int, int> version{0, 0, 0};

Callers

nothing calls this directly

Calls 2

run_and_get_outputFunction · 0.85
emptyMethod · 0.80

Tested by

no test coverage detected