Skip to content

Conversation

@bddap
Copy link

@bddap bddap commented Nov 5, 2021

closes #5

@@ -1,6 +1,6 @@
use piston_window::{EventLoop, PistonWindow, WindowSettings};
use plotters::prelude::*;
use plotters_piston::{draw_piston_window, PistonBackend};
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PistonBackend is unused.

.caption("Real Time CPU Usage", ("sans-serif", 30))
.x_label_area_size(40)
.y_label_area_size(50)
.build_ranged(0..N_DATA_POINTS as u32, 0f32..1f32)?;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build_ranged is now deprecated in favor of build_cartesian_2d

Comment on lines 14 to -20
[dependencies]
plotters-backend = "0.3.0"
plotters-backend = "0.3.2"
piston_window = "0.120.0"

[dev-dependencies]
plotters = {version = "0.3.0", default_features = false, features = ["ttf", "all_series"]}
systemstat = "0.1.5"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated by cargo upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crates.io publish

1 participant