Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TCPlivePLOT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CPUnetLOG
TCPlivePLOT
Commits
50fddf96
Commit
50fddf96
authored
Nov 04, 2016
by
Michael König
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
param to set plot- & figure-title
parent
a5c9387e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
tcpliveplot/backends/gui/live.py
tcpliveplot/backends/gui/live.py
+3
-4
tcpliveplot/main.py
tcpliveplot/main.py
+9
-0
No files found.
tcpliveplot/backends/gui/live.py
View file @
50fddf96
...
...
@@ -12,8 +12,6 @@ VALUES_TO_PLOT = ['cwnd', 'sst', 'rtt', 'smoothedThroughput'] # (only values for
VALUES_TO_PROCESS
=
[
'time'
]
+
VALUES_TO_PLOT
#helper to init all data structures
# Strings for UI-elements
FIGURE_TITLE
=
"TCPlivePLOT"
PLOT_TITLE
=
"Data from"
PAUSE
=
"Pause"
QUIT
=
"Quit"
...
...
@@ -215,13 +213,14 @@ class LiveGui(GuiBase):
self
.
__minVal
=
9999999999
self
.
__maxVal
=
0
fig
=
plt
.
figure
(
FIGURE_TITLE
)
fig
=
plt
.
figure
(
self
.
options
.
title
)
fig
.
canvas
.
mpl_connect
(
'key_press_event'
,
self
.
plotKeyPressCallback
)
self
.
__ax
=
plt
.
axes
()
# self.__ax2 = self.__ax.twinx()
self
.
__ax
.
set_autoscaley_on
(
False
)
self
.
__ax
.
set_xlim
(
0
,
self
.
options
.
xDelta
)
self
.
__ax
.
set_title
(
PLOT_TITLE
+
" :"
+
', :'
.
join
(
map
(
str
,
self
.
options
.
filterPorts
)))
# self.__ax.set_title(PLOT_TITLE + " :" + ', :'.join(map(str, self.options.filterPorts)))
self
.
__ax
.
set_title
(
self
.
options
.
title
)
self
.
__plotLines
=
{}
self
.
__plotValues
=
{}
...
...
tcpliveplot/main.py
View file @
50fddf96
...
...
@@ -16,6 +16,7 @@ TCP_LOG_FORMAT_VERSION_MIN = "2"
DEFAULT_LOGFILE_PATH
=
"/tmp/tcplog.log"
DEFAULT_INPUT_BACKEND
=
"socket"
DEFAULT_TITLE
=
"TCPlivePLOT"
# default values
DEFAULT_SOCKETSERVER_PORT
=
11337
...
...
@@ -218,6 +219,14 @@ def parse_options():
type
=
str
,
default
=
[])
parser
.
add_argument
(
"-t"
,
"--title"
,
help
=
"Set plot and figure title (default: "
+
DEFAULT_TITLE
+
")"
,
dest
=
"title"
,
type
=
str
,
default
=
DEFAULT_TITLE
)
parser
.
add_argument
(
"-d"
,
"--debug"
,
help
=
"Debug mode - ignores quiet mode (default: false)"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment