#!/usr/bin/gnuplot # Blocking the aspect ratio (x unit = y unit) set size 0.6,2.4 # Removing key and axes in the border unset key unset border unset tics # Putting axes in the middle set xzeroaxis ls -1 set yzeroaxis ls -1 # Setting grid axes and labeling set grid xtics ytics # For xtics I only want to modify the place of 0 set xtics axis mirror ("-1" -1, "" 0, "1" 1, "2" 2) set label "0" at 0,0 right nopoint offset -0.5,0-1 # For ytics I want the negative points at the left of the axis and the positive ones at the right set ytics axis mirror ("-8" -8, "-7" -7, "-6" -6, "-5" -5, "-4" -4, "-3" -3, "-2" -2, "-1" -1, "" 0, "" 1, "" 2, "" 3, "" 4) set label "0" at 0,0 left nopoint offset 0.5,0.6 set label "1" at 0,1 left nopoint offset 1,0.0 set label "2" at 0,2 left nopoint offset 1,0.0 set label "3" at 0,3 left nopoint offset 1,0.0 set label "4" at 0,4 left nopoint offset 1,0.0 # Defining output set terminal postscript eps enhanced monochrome set output "DegreeNegative.eps" # Plot. plot [x=-1:2] x lt 0, '-' w l lt -1 lw 4, -x w l lw 6 -1 4 -0.755 0.755 -0.745 0.745 -0.25 3.25 0.25 -3.25 0.745 -0.745 0.755 -0.755 1.25 -7.25 1.75 -4.75 2 -8 e # Exit set out quit #