code: def plotData(
      time, data, showDataPoint=True, color="black", label="unknown"
  ):
      """
      The function to plot data points.
  
      Args:
          time: time label
          data: the data points
          showDataPoint: indicate whether scatter plot is needed
          color: the color of the plot
          label: the label for the plot
      """
      if time is None:
          if showDataPoint:
              plt.plot(data, "o", color=color)
              plt.plot(data, "-", color=color, label=label)
          else:
              plt.plot(data, "-", color=color, label=label)
      else:
          if showDataPoint:
              plt.plot(time, data, "o", color=color)
              plt.plot(time, data, "-", color=color, label=label)
          else:
              plt.plot(time, data, "-", color=color, label=label)
  
file_path: pydlm/pydlm/plot/dlmPlot.py
imports: import matplotlib.pyplot
  from pydlm.base.tools import getInterval
label_desc: Use image node_id 7 for calling a global function with example usage: plotData(time, data, showDataPoint, color, label) without return types