Skip to content

Commit

Permalink
clean up: src/bin/hist.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
shnarazk committed Jan 11, 2025
1 parent 3e2ea98 commit fee3e10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bin/hist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.margin(5)
.caption(
format!("AoC {} execution time distribution", config.year),
("sans-serif", 50.0),
("sans-serif", 24.0),
)
.build_cartesian_2d((-2_i32..20).into_segmented(), 1_i32..8)?;
.build_cartesian_2d((-2_i32..18).into_segmented(), 0_i32..8)?;

chart
.configure_mesh()
.disable_x_mesh()
.bold_line_style(WHITE.mix(0.3))
.y_desc("Count")
.x_desc("Bucket")
.axis_desc_style(("sans-serif", 15))
.x_desc("log2(time[ms])")
.axis_desc_style(("sans-serif", 16))
.draw()?;

let data = json_data
Expand Down

0 comments on commit fee3e10

Please sign in to comment.