Posts Tagged ‘dash’

Adding gridlines to GNUPlot

Posted: 27th July 2012 by Tim in Gnuplot
Tags: , , , , , , ,

Some graphs are easier to read when they have gridlines. These are very easy to add in gnuplot by defining something like this: set grid ytics lt 0 lw 1 lc rgb “#bbbbbb” set grid xtics lt 0 lw 1 lc rgb “#bbbbbb” Where: lt means line type (0 for dashed line, 1 for solid […]

In Bash you quite often need to check to see if a variable has been set or has a value other than an empty string. This can be done using the -n or -z string comparison operators. The -n operator checks whether the string is not null. Effectively, this will return true for every case […]