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()));