code: def poisson(self):
      rate = 5
      K = 20
      sample = test_poisson(rate, self.stat_size)
      fig, axs = plt.subplots(1, 1, tight_layout=True)
      axs.hist(sample, bins=K + 2, range=(0, K + 2), density=True)
      x = np.arange(K + 2, dtype=int)
      y = np.array([stats.poisson.pmf(n, rate) for n in x], dtype=float)
      axs.plot(x, y, color="red")
      fig.suptitle("poisson")
      return fig
  
file_path: tick/tick/random/tests/qqplots.py
imports: import numpy
  from scipy import stats
  import statsmodels.api
  from matplotlib import pyplot
  from tick.random import test_uniform, test_gaussian, test_poisson, test_exponential, test_uniform_int, test_discrete, test_uniform_threaded
label_desc: Use image node_id 3 for calling the QQplot obj's underlying member method code with example usage: obj.poisson() and returns: fig