code: def plotkde(covfact):
      gkde.reset_covfact(covfact)
      kdepdf = gkde.evaluate(ind)
      plt.figure()
      # plot histgram of sample
      plt.hist(xn, bins=20, normed=1)
      # plot estimated density
      plt.plot(ind, kdepdf, label="kde", color="g")
      # plot data generating density
      plt.plot(
          ind,
          alpha * stats.norm.pdf(ind, loc=mlow)
          + (1 - alpha) * stats.norm.pdf(ind, loc=mhigh),
          color="r",
          label="DGP: normal mix",
      )
      plt.title("Kernel Density Estimation - " + str(gkde.covfact))
      plt.legend()
  
file_path: statsmodels/statsmodels/sandbox/nonparametric/kdecovclass.py
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_
  import scipy
  from scipy import stats
  import matplotlib.pylab
label_desc: Use image node_id 1 for calling a global function with example usage: plotkde(covfact) without return types