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

Method draw_rectangle

source/matplot/backend/backend_interface.cpp:179–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 [[maybe_unused]] const std::array<float, 4> &color) {}
178
179 void backend_interface::draw_rectangle(
180 [[maybe_unused]] const double x1, [[maybe_unused]] const double x2,
181 [[maybe_unused]] const double y1, [[maybe_unused]] const double y2,
182 [[maybe_unused]] const std::array<float, 4> &color) {
183 if (!consumes_gnuplot_commands()) {
184 throw std::logic_error(
185 "There is no function to draw_rectangle in this backend yet");
186 } else {
187 throw std::logic_error("This backend has no function draw_triangle "
188 "because it is based on gnuplot commands");
189 }
190 }
191
192 bool backend_interface::should_close() {
193 // by default, we assume backends simply don't have this feature

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected