Add save last datum toggle to y-label
parent
776395791a
commit
cf2f001bcc
|
@ -438,12 +438,15 @@ class YAxisLabel(AxisLabel):
|
||||||
self,
|
self,
|
||||||
index: int,
|
index: int,
|
||||||
value: float,
|
value: float,
|
||||||
|
_save_last: bool = True,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Update the label's text contents **and** position from
|
"""Update the label's text contents **and** position from
|
||||||
a view box coordinate datum.
|
a view box coordinate datum.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
self._last_datum = (index, value)
|
if _save_last:
|
||||||
|
self._last_datum = (index, value)
|
||||||
|
|
||||||
self.update_label(
|
self.update_label(
|
||||||
self._chart.mapFromView(QPointF(index, value)),
|
self._chart.mapFromView(QPointF(index, value)),
|
||||||
value
|
value
|
||||||
|
|
Loading…
Reference in New Issue