commit a657d8d0e8bc26556b08862c98dc535a78ba4bbb
parent c48addad81b25ae643e2d198d96bee7b161ce47b
Author: Anders Damsgaard <andersd@riseup.net>
Date: Fri, 17 Nov 2017 17:30:41 -0500
remove size declaration for 'png' terminal and duplicate file check
Diffstat:
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/grain.jl b/src/grain.jl
@@ -781,7 +781,7 @@ function plotGrainSizeDistribution(simulation::Simulation;
open(gnuplotscript, "w") do f
write(f, """#!/usr/bin/env gnuplot
- set term $gnuplot_terminal size 12 cm,8 cm
+ set term $gnuplot_terminal
set out "$(filename)"\n""")
if log_y
write(f, "set logscale y\n")
diff --git a/test/grain.jl b/test/grain.jl
@@ -34,8 +34,6 @@ info("Testing GSD plotting ")
Granular.plotGrainSizeDistribution(sim)
@test isfile("test-grain-size-distribution.png")
rm("test-grain-size-distribution.png")
-@test isfile("test-grain-size-distribution.png")
-rm("test-grain-size-distribution.png")
Granular.plotGrainSizeDistribution(sim, skip_fixed=false)
@test isfile("test-grain-size-distribution.png")
rm("test-grain-size-distribution.png")