| 100 | } |
| 101 | |
| 102 | int Plot::getX(ssize_t i, ssize_t total) const |
| 103 | { |
| 104 | double x = (width_ - kLeftMargin_ - kRightMargin_) + static_cast<double>(i - total) * ratioX_; |
| 105 | return static_cast<int>(x + 0.5) + kLeftMargin_; |
| 106 | } |
| 107 | |
| 108 | int Plot::getY(double value) const |
| 109 | { |
nothing calls this directly
no outgoing calls
no test coverage detected