| 35 | } |
| 36 | |
| 37 | std::string filled_area::plot_string() { |
| 38 | // we get the fill color and not the line spec from the xlim |
| 39 | maybe_update_face_color(); |
| 40 | |
| 41 | // plot fill curve |
| 42 | std::string res = "'-' with filledcurve linecolor rgb \"" + |
| 43 | to_string(face_color_) + "\""; |
| 44 | |
| 45 | // plot base line |
| 46 | if (plot_base_line_ && line_spec_.has_line()) { |
| 47 | // base line has no markers |
| 48 | auto previous_marker = line_spec_.marker(); |
| 49 | line_spec_.marker(line_spec::marker_style::none); |
| 50 | res += ", " + line::plot_string(); |
| 51 | line_spec_.marker(previous_marker); |
| 52 | } |
| 53 | |
| 54 | // plot line as usual |
| 55 | res += ", " + line::plot_string(); |
| 56 | return res; |
| 57 | } |
| 58 | |
| 59 | std::string filled_area::data_string() { |
| 60 | std::stringstream ss; |