From ef88235330de914b6e4032e90aad936c24f027a4 Mon Sep 17 00:00:00 2001 From: Charles Franklin Date: Wed, 31 Jan 2018 16:42:24 -0500 Subject: [PATCH] Added option to suppress default title and fixed some tabbing --- eplot | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/eplot b/eplot index 7e020ab..f5de0b0 100755 --- a/eplot +++ b/eplot @@ -99,6 +99,7 @@ Output formatting options: --ylog log y-axis -t set the title(s) of the curve(s) (separated by @) -I set the order of the line styles (separated by ,) + --notitle suppress the default title (e.g. -I "2,1,3,4,5") Miscellaneous opions: @@ -132,6 +133,7 @@ class OptionController @o["MulFrMul"]=false @o["MulFrSin"]=false @o["MulFrSeq"]=false + @o["NoTitle"]=false @o["DumpFiles"]=false @o["TitleString"]="" @o["Bars"]="" @@ -191,6 +193,11 @@ class OptionController when /^-d$|^--dumb$/ com=com+"set terminal dumb;\n" + + # ---- Do we suppress the title? + when /^--notitle$/ + @o["NoTitle"]=true + # ---- Multiple curves in a single diagram from different files when /^-m$|^--mulfrmul$/ @o["MulFrMul"]=true @@ -437,7 +444,11 @@ class Controller def runSinFrSin(filename) styleArr=@oc["StyleIndices"].split(",") com="\""+filename+"\" " - com=com+"title \""+@oc["TitleString"]+"\" " if @oc["TitleString"]!="" + if @oc["TitleString"]!="" + com=com+"title \""+@oc["TitleString"]+"\" " + elsif @oc["NoTitle"] + com=com+"notitle " + end com=com+"with "+@oc["LineType"]+" ls "+styleArr[0] plot(com,false) end