| 86 | } |
| 87 | |
| 88 | std::string network::legend_string(std::string_view title) { |
| 89 | if (line_spec_.has_line() && line_spec_.has_non_custom_marker()) { |
| 90 | return " keyentry " + |
| 91 | line_spec_.plot_string( |
| 92 | line_spec::style_to_plot::plot_line_and_marker) + |
| 93 | " title \"" + escape(title) + "\""; |
| 94 | } else if (line_spec_.has_line()) { |
| 95 | return " keyentry " + |
| 96 | line_spec_.plot_string( |
| 97 | line_spec::style_to_plot::plot_line_only) + |
| 98 | " title \"" + escape(title) + "\""; |
| 99 | } else { |
| 100 | return " keyentry " + |
| 101 | line_spec_.plot_string( |
| 102 | line_spec::style_to_plot::plot_marker_only) + |
| 103 | " title \"" + escape(title) + "\""; |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | std::string network::data_string() { |
| 108 | std::stringstream ss; |
nothing calls this directly
no test coverage detected