|
|
|
@ -53,7 +53,7 @@ show_histogram_svg(const vector<double>& bins) {
|
|
|
|
|
for (double bin : bins) {
|
|
|
|
|
const double bin_width = MAX_WIDTH * ((BLOCK_WIDTH * bin) / max_count);
|
|
|
|
|
svg_text(TEXT_LEFT, top + TEXT_BASELINE, to_string(bin));
|
|
|
|
|
svg_rect(TEXT_WIDTH, top, bin_width, BIN_HEIGHT, "blue", "#aaffaa");
|
|
|
|
|
svg_rect(TEXT_WIDTH, top, bin_width, BIN_HEIGHT, "green", "yellow");
|
|
|
|
|
top += BIN_HEIGHT;
|
|
|
|
|
}
|
|
|
|
|
svg_end();
|
|
|
|
|