code: def _plot_tick_intensity(
      timestamps_i, intensity_times, intensity_i, ax, label, n_points
  ):
      x_intensity = np.linspace(
          intensity_times.min(), intensity_times.max(), n_points
      )
      y_intensity = np.interp(
          x_intensity, intensity_times, intensity_i, left=0
      )
      ax.plot(x_intensity, y_intensity)
  
      x_ticks = timestamps_i
      y_ticks = np.interp(x_ticks, intensity_times, intensity_i)
  
      ax.scatter(x_ticks, y_ticks)
      ax.set_title(label)
  
file_path: tick/tick/plot/plot_point_processes.py
imports: import matplotlib.pyplot
  import numpy
  from typing import Optional, List
  from tick.hawkes.simulation.base import SimuPointProcess
label_desc: Use image node_id 3 for calling a global function with example usage: _plot_tick_intensity(timestamps_i, intensity_times, intensity_i, ax, label, n_points) without return types