Handle no y-range maxmin output (seems like bug?)

windows_fixes_yo
Tyler Goodlet 2022-02-04 11:55:53 -05:00
parent 26b0071471
commit 4570b06c26
1 changed files with 5 additions and 1 deletions

View File

@ -731,7 +731,11 @@ class ChartView(ViewBox):
)
if set_range:
ylow, yhigh = self._maxmin()
yrange = self._maxmin()
if yrange is None:
return
ylow, yhigh = yrange
# view margins: stay within a % of the "true range"
diff = yhigh - ylow