Commit 4bf1e1da authored by Axel Auweter's avatar Axel Auweter
Browse files

Escape underscore in sensor names for gnuplot in dcdbplot.

parent b84ad61e
......@@ -160,7 +160,9 @@ plot \\
while read -r i; do
echo -n "'$TMP/${i}.dat2' using 2:3 title '$i' with $LINES $SMOOTH" >> $TMP/plot.gplt
# Generate escaped title
T=`echo "$i" | sed -e 's/_/\\\\_/g'`
echo -n "'$TMP/${i}.dat2' using 2:3 title '$T' with $LINES $SMOOTH" >> $TMP/plot.gplt
if [ "$A" -gt "1" ]; then
echo ", \\" >> $TMP/plot.gplt
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment