blob: e5583332521d2ebd5c2006bd27a323766300f8e9 [file] [log] [blame]
################################################################################
# Copyright (c) 2010, 2021 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the terms
# of the MIT License which is available at https://opensource.org/licenses/MIT
#
# SPDX-License-Identifier: MIT
################################################################################
# Requires Gnuplot 4.4 or higher.
set terminal pngcairo size 500,300 font 'sans'
set output "root_simple_guard.png"
set style line 1 linecolor rgb '#dc3912' linetype 1 linewidth 2
set style line 2 linecolor rgb '#3366cc' linetype 1 linewidth 2
#set style line 3 linecolor rgb '#109618' linetype 1 linewidth 2
#set style line 4 linecolor rgb '#ff9900' linetype 1 linewidth 2
#set style line 5 linecolor rgb '#990099' linetype 1 linewidth 2
#set style line 6 linecolor rgb '#00cccc' linetype 1 linewidth 2
set style line 11 lc rgb '#808080' lt 1
set border 3 back ls 11
set border linewidth 1.5
set ytics 1.0
set style line 12 lc rgb'#808080' lt 0 lw 1
set grid back ls 12
set grid back
set autoscale yfixmin
set autoscale yfixmax
set autoscale xfixmin
set autoscale xfixmax
set offsets 0, 0, graph 0.15, graph 0.15
set samples 1000
set multiplot layout 2, 1
set size 1, 0.60
set origin 0, 0.40
set key top left vertical
plot \
"root_simple2.png.dat" using 1:($2) title "x(time)" with linespoints ls 1, \
"root_simple2.png.dat" using 1:($3) title "x'(time)" with linespoints ls 2
set size 1, 0.40
set origin 0, 0
set key bottom right vertical
plot [0:5] x >= 1.5 ? +1 : -1 title "x >= 1.5" with lines ls 1