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

Method plot_string

source/matplot/axes_objects/filled_area.cpp:37–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

to_stringFunction · 0.85
has_lineMethod · 0.80
markerMethod · 0.45

Tested by

no test coverage detected