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-topo
Commits
1d5a80ab
Commit
1d5a80ab
authored
Jul 07, 2021
by
Giacomo Strangolino
Browse files
try fix shrinking scales
parent
2e879dc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/i0mmtopobarchart.cpp
View file @
1d5a80ab
...
...
@@ -134,9 +134,11 @@ void I0MMTopoBarChart::update(const QList<CuData> &dl) {
m_error
(
error
);
// show or hide error message
m_cur_data
=
dl
;
// save data
m_min
=
m_min
-
(
m_max
-
m_min
)
*
0.01
;
m_max
=
m_max
+
(
m_max
-
m_min
)
*
0.01
;
const
double
d
=
m_max
-
m_min
;
m_min
=
m_min
-
d
*
0.01
;
m_max
=
m_max
+
d
*
0.01
;
if
(
m_min
<=
0
&&
m_barchart
->
baseline
()
>
0
)
m_min
=
0.01
;
// log scale
setAxisScale
(
QwtPlot
::
xBottom
,
m_min
,
m_max
);
if
(
axisScaleDiv
(
QwtPlot
::
xBottom
).
lowerBound
()
!=
m_min
||
axisScaleDiv
(
QwtPlot
::
xBottom
).
upperBound
()
!=
m_max
)
setAxisScale
(
QwtPlot
::
xBottom
,
m_min
,
m_max
);
}
void
I0MMTopoBarChart
::
clear
()
{
...
...
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