Commit 79168def authored by Michael König's avatar Michael König

added paramt to modifiy inital line visiblity

parent ff6a55aa
......@@ -60,7 +60,10 @@ class LiveGui(GuiBase):
def startupCheck(self):
for val in VALUES_TO_PLOT:
self.lineVisibility[val] = True
if((len(self.options.initialLineVisibility) < 1) or (val in self.options.initialLineVisibility)):
self.lineVisibility[val] = True
else:
self.lineVisibility[val] = False
def pause(self, event):
"""Toggles pause flag."""
......
......@@ -209,17 +209,15 @@ def parse_options():
type=float,
default=0.1)
# Filter
parser.add_argument(
"-p",
"--port",
help="Filter by port. Multiple occurrences possible (" + str(DEFAULT_FILTER_PORT) + ")",
dest="filterPorts",
"-l",
"--line-visibility",
help="List of initially visible value-lines - currently available: " + ", ".join(VALUES_TO_PLOT) + " (default: empty = all visible)",
dest="initialLineVisibility",
action='append',
type=int,
type=str,
default=[])
parser.add_argument(
"-d",
"--debug", help="Debug mode - ignores quiet mode (default: false)",
......@@ -234,6 +232,16 @@ def parse_options():
dest="quiet",
default=False)
parser.add_argument(
"-p",
"--port",
help="Filter by port. Multiple occurrences possible (" + str(DEFAULT_FILTER_PORT) + ")",
dest="filterPorts",
action='append',
type=int,
default=[])
parser.add_argument(
"--version",
help="Print version information",
......@@ -241,6 +249,8 @@ def parse_options():
dest="showVersion",
default=False)
options = parser.parse_args()
return options
......
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