MCPcopy Create free account
hub / github.com/asmuth/clip / plot_eval

Function plot_eval

src/plot/plotgen.cc:114–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114ReturnCode plot_eval(
115 Context* ctx,
116 const Expr* expr) {
117 PlotConfig plot;
118
119 /* scale setup */
120 if (auto rc = plot_prepare(ctx, &plot, expr); !rc) {
121 return rc;
122 }
123
124 /* execute drawing commands */
125 if (auto rc = plot_draw(ctx, &plot, expr); !rc) {
126 return rc;
127 }
128
129 return OK;
130}
131
132Rectangle plot_get_clip(const PlotConfig* plot, const Layer* layer) {
133 if (plot->layout_stack.empty()) {

Callers

nothing calls this directly

Calls 2

plot_prepareFunction · 0.85
plot_drawFunction · 0.85

Tested by

no test coverage detected