code: def plot_sol(solver=None):
      def _(params):
          import mystic._signal as signal
  
          print("plotting params: %s" % params)
          plt.errorbar(binsc, histo, sqrt(histo), fmt="b+")
          x = arange(xmin, xmax, (0.1 * binwidth))
          plt.plot(x, pdf(x) * N, "b:")
          plt.plot(x, F(params)(x) * N, "r-")
          plt.xlabel("E (GeV)")
          plt.ylabel("Counts")
          try:
              show()
          except ImportError:
              plt.show()
          if solver is not None:
              signal.signal(signal.SIGINT, signal.Handler(solver))
  
      return _
  
file_path: mystic/examples/test_lorentzian.py
imports: import matplotlib.pyplot, matplotlib
  from numpy import *
  from mystic.models import lorentzian
  from test_lorentzian2 import *
  import warnings
label_desc: Use image node_id 3 for calling a global function with example usage: plot_sol(solver) and returns: _