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

Method axes_category

source/matplot/axes_objects/line.cpp:340–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338 }
339
340 enum axes_object::axes_category line::axes_category() {
341 if (z_data_.empty()) {
342 if (!polar_) {
343 return axes_object::axes_category::two_dimensional;
344 } else {
345 return axes_object::axes_category::polar;
346 }
347 } else {
348 return axes_object::axes_category::three_dimensional;
349 }
350 }
351
352 bool line::requires_colormap() { return !marker_colors_.empty(); }
353

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected