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
3e203607
Commit
3e203607
authored
Dec 06, 2017
by
Arnaud Blanchard
Browse files
Reactivate scale limit (min, max).
parent
5398a461
Changes
1
Hide whitespace changes
Inline
Side-by-side
o_gnuplot/src/graph.cpp
View file @
3e203607
...
@@ -66,13 +66,13 @@ void create_graph(blc_channel *input, char const *title, int refresh_period, flo
...
@@ -66,13 +66,13 @@ void create_graph(blc_channel *input, char const *title, int refresh_period, flo
init_term
(
pipef
,
title
,
verbatim
);
init_term
(
pipef
,
title
,
verbatim
);
//
if (min!=max) fprintf(pipef, "set yrange [%f:%f]\n", min, max);
if
(
min
!=
max
)
fprintf
(
pipef
,
"set yrange [%f:%f]
\n
"
,
min
,
max
);
//
if (xmin!=xmax) fprintf(pipef, "set xrange [%f:%f]\n", xmin, xmax);
if
(
xmin
!=
xmax
)
fprintf
(
pipef
,
"set xrange [%f:%f]
\n
"
,
xmin
,
xmax
);
if
(
input
->
dims_nb
==
2
){
if
(
input
->
dims_nb
==
2
){
//
fprintf(pipef, "set xrange [%f:%f]\n", 0, 10);
fprintf
(
pipef
,
"set xrange [%f:%f]
\n
"
,
0
.
f
,
10
.
f
);
/*
fprintf(pipef, "set yrange [%f:%f]\n", 0, 10);
*/
fprintf
(
pipef
,
"set yrange [%f:%f]
\n
"
,
0
.
f
,
10
.
f
);
//
fprintf(pipef, "set zrange [%f:%f]\n", min, max);
fprintf
(
pipef
,
"set zrange [%f:%f]
\n
"
,
min
,
max
);
fprintf
(
pipef
,
"set view 30,190
\n
"
);
fprintf
(
pipef
,
"set view 30,190
\n
"
);
...
...
Write
Preview
Supports
Markdown
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