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

Method axes_object

source/matplot/core/axes_object.cpp:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9namespace matplot {
10 axes_object::axes_object(class axes_type *parent) : parent_(parent) {
11 const bool axes_have_legend = parent_->legend() != nullptr;
12 if (axes_have_legend) {
13 const bool all_objects_have_legend =
14 parent_->legend()->strings().size() >=
15 parent_->children().size();
16 if (all_objects_have_legend) {
17 parent_->legend()->strings().emplace_back(
18 "data " + num2str(parent_->children().size() + 1));
19 }
20 }
21 }
22
23 axes_object::axes_object(axes_handle parent) : axes_object(parent.get()) {}
24

Callers

nothing calls this directly

Calls 5

num2strFunction · 0.85
stringsMethod · 0.80
legendMethod · 0.45
sizeMethod · 0.45
childrenMethod · 0.45

Tested by

no test coverage detected