From 5fa0d5d889dff17a8e011971d80de7661ae130eb Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Thu, 12 Dec 2019 21:25:04 +0100 Subject: Add rust code --- src/plot/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/plot/mod.rs (limited to 'src/plot/mod.rs') diff --git a/src/plot/mod.rs b/src/plot/mod.rs new file mode 100644 index 0000000..8773020 --- /dev/null +++ b/src/plot/mod.rs @@ -0,0 +1,9 @@ +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); +} -- cgit v1.2.3-54-g00ecf