diff --git a/.gitignore b/.gitignore index 2ddfe91..c5731ce 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.sw? **/target +*.png diff --git a/plotterstest/.gitignore b/plotterstest/.gitignore new file mode 100644 index 0000000..e33609d --- /dev/null +++ b/plotterstest/.gitignore @@ -0,0 +1 @@ +*.png diff --git a/plotterstest/cases.png b/plotterstest/cases.png deleted file mode 100644 index 5ec96ee..0000000 Binary files a/plotterstest/cases.png and /dev/null differ diff --git a/plotterstest/histogram.png b/plotterstest/histogram.png deleted file mode 100644 index c506349..0000000 Binary files a/plotterstest/histogram.png and /dev/null differ diff --git a/plotterstest/src/main.rs b/plotterstest/src/main.rs index fe65dce..387a582 100644 --- a/plotterstest/src/main.rs +++ b/plotterstest/src/main.rs @@ -165,14 +165,14 @@ fn main() { root.fill(&WHITE).unwrap(); let mut chart = ChartBuilder::on(&root) - .x_label_area_size(100) + .x_label_area_size(150) .y_label_area_size(50) .margin(5) .caption("Cases", ("sans-serif", 40.0)) .build_cartesian_2d((0..values.len()).into_segmented(), 0.0f64..300.0f64) .unwrap(); - let pos = Pos::new(HPos::Right, VPos::Top); + let pos = Pos::new(HPos::Left, VPos::Bottom); let x_label_style = TextStyle::from(("sans-serif", 10).into_font()) .pos(pos) .transform(FontTransform::Rotate90);