Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cs
gui
i0mapmon
Commits
9d5ca029
Commit
9d5ca029
authored
Sep 10, 2020
by
Giacomo Strangolino
Browse files
fixes to time X scale and enabled wlen and wlen wei writings
parent
f8034fd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/i0mmonplot.cpp
View file @
9d5ca029
...
...
@@ -98,13 +98,14 @@ void I0MMonPlot::onDataReady(const QList<CuData> &dl) {
const
CuData
&
da
=
dl
[
0
];
const
std
::
vector
<
double
>
&
ystdv
=
da
[
"value"
].
toDoubleVector
();
#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
const
QVector
<
double
>
xv
;
QVector
<
double
>
xv
;
foreach
(
int
la
,
m_lambda_idxs
)
xv
.
push_back
(
la
);
xv
<<
(
la
);
const
QVector
<
double
>
yv
=
QVector
<
double
>::
fromStdVector
(
ystdv
);
#else
const
QVector
<
double
>
xv
(
m_lambda_idxs
.
begin
(),
m_lambda_idxs
.
end
());
const
QVector
<
double
>
xv
(
m_lambda_idxs
.
begin
(),
m_lambda_idxs
.
end
());
const
QVector
<
double
>
yv
(
ystdv
.
begin
(),
ystdv
.
end
());
#endif
const
QVector
<
double
>
yv
(
ystdv
.
begin
(),
ystdv
.
end
());
// CuVariant ts = da["timestamp_ms"];
// ts.getType() == CuVariant::LongInt ? x = static_cast<qint64>(ts.toLongInt()) : x = ts.toDouble();
printf
(
"\e[0;33mdata %s -- timestamp %f\e[0m
\n
"
,
datos
(
da
),
x
);
...
...
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