<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def plotOverlapHistogram(v, w, title, base="random"):
 """ Given a vector v, compute the overlap with the weight matrix w and save the histogram of overlaps. """

  overlaps = v.matmul(w.t())

  # Plot histogram of overlaps
  bins = np.linspace(float(overlaps.min()), float(overlaps.max()), 28)
  plt.hist(overlaps, bins, alpha=0.5, label='All cols')
  plt.legend(loc='upper right')
  plt.xlabel("Overlap scores")
  plt.ylabel("Frequency")
  plt.title(title)
  plt.savefig(base+"_1")
  plt.close()

  return overlaps