commit 62fe5ebaa3bc459953cd2ba83693919f31f2d428
parent 0a7f6cb04c2d44712d6e05f8db0803e53c20e489
Author: Anders Damsgaard <andersd@riseup.net>
Date: Fri, 22 Dec 2017 14:45:00 -0500
Remove extra Gnuplot palette definition
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/io.jl b/src/io.jl
@@ -1321,7 +1321,6 @@ function plotGrains(sim::Simulation;
write(f, """#!/usr/bin/env gnuplot
set term $(gnuplot_terminal)
set out "$(filename)"
- set palette defined (0 "gray", 1 "white")
set xlabel "x [m]"
set ylabel "y [m]"\n""")
if typeof(sim.ocean.input_file) != Bool
@@ -1337,6 +1336,9 @@ function plotGrains(sim::Simulation;
# light gray to black
write(f, "set palette defined ( 1 '#d3d3d3', 2 '#000000')\n")
+ # gray to white
+ #write(f, "set palette defined (0 'gray', 1 'white')\n")
+
write(f, """set cblabel "Diameter [m]"
set size ratio -1
set key off\n""")
@@ -1364,7 +1366,7 @@ function plotGrains(sim::Simulation;
end
end
- write(f,"""plot "$(datafile)" with circles lt 1 lc rgb "black" t "Particle"
+ write(f,"""plot "$(datafile)" with circles palette fs lt 1 lc rgb "black" t "Particle"
""")
end