Only use last `ChartView._yrange` if set
parent
972b723a5d
commit
db1e0a04f8
|
@ -554,7 +554,12 @@ def graphics_update_cycle(
|
||||||
main_vb: ChartView = main_viz.plot.vb
|
main_vb: ChartView = main_viz.plot.vb
|
||||||
this_viz: Viz = chart._vizs[fqsn]
|
this_viz: Viz = chart._vizs[fqsn]
|
||||||
this_vb: ChartView = this_viz.plot.vb
|
this_vb: ChartView = this_viz.plot.vb
|
||||||
lmn, lmx = this_vb._yrange
|
this_yr = this_vb._yrange
|
||||||
|
if this_yr:
|
||||||
|
lmn, lmx = this_yr
|
||||||
|
else:
|
||||||
|
lmn = lmx = 0
|
||||||
|
|
||||||
mx: float = lmx
|
mx: float = lmx
|
||||||
mn: float = lmn
|
mn: float = lmn
|
||||||
mx_vlm_in_view: float | None = None
|
mx_vlm_in_view: float | None = None
|
||||||
|
|
Loading…
Reference in New Issue