summaryrefslogtreecommitdiff
path: root/src/plot/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/plot/mod.rs')
-rw-r--r--src/plot/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plot/mod.rs b/src/plot/mod.rs
index 8773020..1124128 100644
--- a/src/plot/mod.rs
+++ b/src/plot/mod.rs
@@ -2,8 +2,8 @@ pub mod gnuplot;
pub use gnuplot::Gnuplot;
pub trait Graph {
- fn plot3d(data: Vec<[f64; 6]>, chunk_size: u32);
- fn animate3d(data: Vec<[f64; 6]>, chunk_size: u32, start: usize, end: usize);
- fn plot2d(data: Vec<[f64; 6]>, chunk_size: u32);
- fn animate2d(data: Vec<[f64; 6]>, chunk_size: u32, start: usize, end: usize);
+ fn plot3d(data: &[[f64; 6]], chunk_size: u32);
+ fn animate3d(data: &[[f64; 6]], chunk_size: u32, start: usize, end: usize);
+ fn plot2d(data: &[[f64; 6]], chunk_size: u32);
+ fn animate2d(data: &[[f64; 6]], chunk_size: u32, start: usize, end: usize);
}