From ca45ac98278591ad5bf648c5364ec2582fce496c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Ctibor?= <54367119+vctibor@users.noreply.github.com> Date: Fri, 2 Apr 2021 23:09:20 +0200 Subject: [PATCH] Update 3d-plot.rs example --- examples/3d-plot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/3d-plot.rs b/examples/3d-plot.rs index a31647f4..7617ae68 100644 --- a/examples/3d-plot.rs +++ b/examples/3d-plot.rs @@ -21,12 +21,12 @@ fn main() -> Result<(), Box> { chart .draw_series( - SurfaceSeries::xoz( + SurfaceSeries::new( (-30..30).map(|f| f as f64 / 10.0), (-30..30).map(|f| f as f64 / 10.0), |x, z| (x * x + z * z).cos(), + BLUE.mix(0.2).filled() ) - .style(BLUE.mix(0.2).filled()), )? .label("Surface") .legend(|(x, y)| Rectangle::new([(x + 5, y - 5), (x + 15, y + 5)], BLUE.mix(0.5).filled()));