Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update 3d-plot.rs example
  • Loading branch information
vctibor authored Apr 2, 2021
commit ca45ac98278591ad5bf648c5364ec2582fce496c
4 changes: 2 additions & 2 deletions examples/3d-plot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

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