23 #if MAST_ENABLE_GNUPLOT == 1 26 MAST::plot_elem(Gnuplot& gp,
27 const libMesh::Elem& elem) {
30 libmesh_assert_equal_to(elem.dim(), 2);
33 n_nodes = elem.n_nodes();
35 std::vector<std::tuple<Real, Real>>
38 for (
unsigned int i=0; i<=n_nodes; i++) {
39 std::get<0>(xy[i]) = (*elem.node_ptr(i%n_nodes))(0);
40 std::get<1>(xy[i]) = (*elem.node_ptr(i%n_nodes))(1);
43 gp <<
"plot '-' with lines \n";
49 MAST::plot_node(Gnuplot& gp,
const libMesh::Node& node) {
51 std::vector<std::tuple<Real, Real>>
54 std::get<0>(xy[0]) = node(0);
55 std::get<1>(xy[0]) = node(1);
57 gp <<
"plot '-' with points \n";