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

Method create_line_index

source/matplot/axes_objects/surface.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 // }
45
46 size_t surface::create_line_index() {
47 auto it =
48 std::find_if(parent_->children().begin(), parent_->children().end(),
49 [this](const auto &c) { return c.get() == this; });
50 if (it != parent_->children().end()) {
51 return 100 * (1 + it - parent_->children().begin());
52 } else {
53 std::cerr << "Cannot find surface in the parent xlim" << std::endl;
54 return 100;
55 }
56 }
57
58 std::string surface::set_variables_string() {
59 maybe_update_line_spec();

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
childrenMethod · 0.45

Tested by

no test coverage detected