Skip to content

Commit

Permalink
gnuplots arrowstyle same as piston
Browse files Browse the repository at this point in the history
  • Loading branch information
surt91 committed Aug 8, 2017
1 parent eadf74c commit 9300231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ fn run(num_birds: u64, num_iterations: u64, neighbors: usize, filename: &str) ->
write!(file, "unset tics\n")?;
write!(file, "unset key\n")?;
write!(file, "unset colorbox\n")?;
write!(file, "set style arrow 1 head filled size screen 0.025, 30, 45 ls 1 lc palette\n")?;
write!(file, "set style arrow 1 head filled size screen 0.025, 30, 45 fixed ls 1 lt -1 lc palette\n")?;

for i in 0..num_iterations {
let dataname = format!("data/{}_{:04}.dat", filename, i);
v.save(&dataname)?;

write!(file, "set output 'img/{}_{:04}.png'\n", filename, i)?;
write!(file, "p '{}' u 1:2:($3*0.03):($4*0.03):5 with vectors arrowstyle 1\n", dataname)?;
write!(file, "p '{}' u 1:2:($3*0.003):($4*0.003):5 with vectors arrowstyle 1\n", dataname)?;

v.sweep(5);
}
Expand Down

0 comments on commit 9300231

Please sign in to comment.