| 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(); |