Fix bug where if `yrange` was passed the mxmin callback was still used..

marketstore_backup
Tyler Goodlet 2022-04-06 17:11:15 -04:00
parent f2a9580d5c
commit 5b7f33f60b
1 changed files with 8 additions and 3 deletions

View File

@ -798,8 +798,13 @@ class ChartView(ViewBox):
if set_range:
if not yrange:
# XXX: only compute the mxmn range
# 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