MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / draw_y_axis

Function draw_y_axis

src/fe-analysedriveresponse.cc:145–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145static void draw_y_axis(Agg2D& painter,
146 double x,
147 double y1,
148 double y2,
149 double lo,
150 double hi,
151 double step,
152 const std::string& format)
153{
154 painter.noFill();
155 painter.lineColor(0, 0, 0);
156 painter.line(x, y1, x, y2);
157 painter.textSize(10.0);
158 painter.textAlignment(Agg2D::AlignRight);
159
160 do_in_steps(y1,
161 y2,
162 lo,
163 hi,
164 step,
165 [&](double y, double v)
166 {
167 painter.line(x, y, x - 5, y);
168 painter.text(x - 8, y + 5.0, fmt::format(fmt::runtime(format), v));
169 });
170}
171
172static void draw_x_axis(Agg2D& painter,
173 double x1,

Callers 1

mainAnalyseDriveResponseFunction · 0.85

Calls 7

do_in_stepsFunction · 0.85
noFillMethod · 0.80
lineColorMethod · 0.80
textAlignmentMethod · 0.80
lineMethod · 0.45
textSizeMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected