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

Function x_width

source/matplot/axes_objects/matrix.h:128–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 std::string labels_data_string();
127
128 inline double x_width() {
129 return (w_ - 1) / static_cast<double>(matrices_[0][0].size() - 1);
130 }
131
132 inline double y_width() { return (h_ - 1) / static_cast<double>(matrices_[0].size() - 1); }
133

Callers 4

matrix_data_stringMethod · 0.85
image_data_stringMethod · 0.85
xmaxMethod · 0.85
xminMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected