Fix bug where if `yrange` was passed the mxmin callback was still used..
parent
f2a9580d5c
commit
5b7f33f60b
|
@ -798,9 +798,14 @@ class ChartView(ViewBox):
|
||||||
|
|
||||||
if set_range:
|
if set_range:
|
||||||
|
|
||||||
yrange = self._maxmin()
|
if not yrange:
|
||||||
if yrange is None:
|
# XXX: only compute the mxmn range
|
||||||
return
|
# if none is provided as input!
|
||||||
|
yrange = self._maxmin()
|
||||||
|
|
||||||
|
if yrange is None:
|
||||||
|
log.warning(f'No yrange provided for {self.name}!?')
|
||||||
|
return
|
||||||
|
|
||||||
ylow, yhigh = yrange
|
ylow, yhigh = yrange
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue