Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
blaar
gnuplot
Commits
e0163945
Commit
e0163945
authored
Jun 04, 2021
by
Arnaud Blanchard
Browse files
remove debug code
parent
6fc0bd42
Changes
1
Show whitespace changes
Inline
Side-by-side
o_gnuplot/src/o_gnuplot.cpp
View file @
e0163945
...
...
@@ -58,9 +58,6 @@ int main(int argc, char *argv[]){
uint32_t
type
;
int
dims_nb
;
fprintf
(
stderr
,
"start graph %s
\n
"
,
history_str
);
blc_program_set_description
(
"Display the content of the blc_channel depending on its type and format"
);
blc_program_add_option
(
&
verbatim
,
'c'
,
"command"
,
"string"
,
"command directly send to gnuplot"
,
NULL
);
blc_program_add_option
(
&
ymin_str
,
'm'
,
"min"
,
"FL32"
,
"minimal value"
,
NULL
);
...
...
@@ -76,15 +73,9 @@ int main(int argc, char *argv[]){
blc_program_add_option
(
&
refresh_string
,
'P'
,
"period"
,
"UI32"
,
"graph refresh period in ms"
,
"100"
);
blc_program_add_option
(
&
window_string
,
'W'
,
"window"
,
"string"
,
"window posistion and size: 'px,py,sx,sy'"
,
nullptr
);
blc_program_add_multiple_parameters
(
&
channel_names
,
"blc_channel"
,
-
1
,
"channel you want to graph"
);
blc_program_init
(
&
argc
,
&
argv
,
blc_quit
);
fprintf
(
stderr
,
"init done graph %s
\n
"
,
history_str
);
blc_command_forward_blc_channels
();
fprintf
(
stderr
,
"param done graph %s
\n
"
,
history_str
);
for
(
char
*
const
*
channel_name_pt
=
channel_names
;
*
channel_name_pt
!=
nullptr
;
channel_name_pt
++
){
inputs
.
emplace_back
();
new
(
&
inputs
.
back
())
blc_channel
(
*
channel_name_pt
,
BLC_CHANNEL_READ
);
...
...
@@ -149,9 +140,6 @@ int main(int argc, char *argv[]){
fprintf
(
pipef
,
"set term qt 1 position %d,%d size %d,%d
\n
"
,
px
,
py
,
sx
,
sy
);
}
fprintf
(
stderr
,
"before graph %s
\n
"
,
history_str
);
if
(
history_str
)
create_history_graph
(
pipef
,
inputs
,
strtol
(
history_str
,
NULL
,
10
),
sampling_period
,
strtol
(
sample_string
,
NULL
,
10
)
*
1000
,
ymin
,
ymax
);
else
create_graph
(
pipef
,
inputs
,
sampling_period
,
ymin
,
ymax
,
xmin
,
xmax
,
lmax
);
...
...
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