From ef88235330de914b6e4032e90aad936c24f027a4 Mon Sep 17 00:00:00 2001 From: Charles Franklin Date: Wed, 31 Jan 2018 16:42:24 -0500 Subject: [PATCH 1/3] 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 From b5319c2ec5a9300f9f5bc190637616d85b7f5045 Mon Sep 17 00:00:00 2001 From: Charles Franklin Date: Mon, 12 Mar 2018 10:39:35 -0400 Subject: [PATCH 2/3] Fixed line order in help message --- eplot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eplot b/eplot index f5de0b0..9337375 100755 --- a/eplot +++ b/eplot @@ -99,8 +99,8 @@ 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") + --notitle suppress the default title Miscellaneous opions: -B , creates vertical bars (separated by @) From 18d55e72449b85706b775c50e71141e3d94f9834 Mon Sep 17 00:00:00 2001 From: Charles Franklin Date: Sat, 15 Aug 2020 19:46:10 -0400 Subject: [PATCH 3/3] Applied patch to make -notitle to work with -m / --mulfrmul --- eplot | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eplot b/eplot index 9337375..c93d678 100755 --- a/eplot +++ b/eplot @@ -24,6 +24,8 @@ # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # ************************************************************************** # Changelog: +# 2.11 06.08.2020: -Charles Franklin added --notitle option (@cjfman) +# 2.10 05.08.2020: -Bugfix: print --help output to stdout instead of stderr # 2.09 03.09.2018: -Jon Coppeard added support for SVG (@jonco3 at github) # 2.08 24.07.2017: -added dumb terminal support by Peter Barnes # 2.07 03.05.2007: -bugfix case where input file is empty @@ -57,7 +59,7 @@ require 'tempfile' # ************************************************************************** # CONFIGURATION -$Version="2.07 03.05.2007" +$Version="2.11 06.08.2020" $TextViewer="cat" $GnuPlot4OrNewer=true @@ -193,7 +195,6 @@ class OptionController when /^-d$|^--dumb$/ com=com+"set terminal dumb;\n" - # ---- Do we suppress the title? when /^--notitle$/ @o["NoTitle"]=true @@ -585,6 +586,7 @@ class Controller t=File.open(fn) openedFiles.push(t) end + removeDummyTitles(openedFiles.length) if @oc["NoTitle"] runMulFrMulOpenedFiles(openedFiles) openedFiles.each { |f| f.close } end