class_docstr: Class for visualizing predictions of univariate anomaly detection & forecasting models.
class_docstr_tok: ["Class","for","visualizing","predictions","of","univariate","anomaly","detection","&","forecasting","models","."]
docstr: :return: Final time being plotted.
docstr_tok: [":","return",":","Final","time","being","plotted","."]
code: def tf(self):
      """
      :return: Final time being plotted.
      """
      ys = [self.anom, self.y, self.yhat, self.y_prev, self.yhat_prev]
      return max(
          y.index[-1] for y in ys if y is not None and len(y) > 0
      )
  
imports: import logging
  from typing import Dict
  from copy import copy
  from matplotlib.colors import to_rgb
  from matplotlib.dates import AutoDateLocator, AutoDateFormatter
  import matplotlib.pyplot
  import numpy
  import pandas
  import plotly
  import plotly.graph_objects
  from plotly.subplots import make_subplots
  from merlion.utils import TimeSeries, UnivariateTimeSeries
label_desc: Use image node_id 3 for calling the Figure obj's underlying member method code with example usage: obj.tf() and returns: max