code: def plotLatentState(time, coordinates, result, options, name):
      """
      Plot the latent state for given coordinates
  
      Args:
          time: the time label
          coordinates: the coordinates to plot
          result: the fitted result from dlm class
          options: options for the plot, for details please refer to @dlm
          name: the name of the component
      """
      # first compute how many plots are needed
      numOfPlots = len(coordinates)
      size = (numOfPlots, 1)
  
      # plot all needed results
      for i, dim in enumerate(coordinates):
          subplot(size, i + 1)
          plotSingleState(time, dim, result, options)
          plt.title(
              "Filter result for dimension "
              + str(i)
              + " in component: "
              + name
          )
  
file_path: pydlm/pydlm/plot/dlmPlot.py
imports: import matplotlib.pyplot
  from pydlm.base.tools import getInterval
label_desc: Use image node_id 3 for calling a global function with example usage: plotLatentState(time, coordinates, result, options, name) without return types