mirror of
https://github.com/chriswolfvision/eplot.git
synced 2025-05-06 06:46:43 +08:00
Added option to suppress default title and fixed some tabbing
This commit is contained in:
parent
aa4d607f05
commit
ef88235330
13
eplot
13
eplot
@ -99,6 +99,7 @@ Output formatting options:
|
||||
--ylog log y-axis
|
||||
-t <titles> set the title(s) of the curve(s) (separated by @)
|
||||
-I <indices> 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
|
||||
|
Loading…
Reference in New Issue
Block a user