title: Division of two plt.hist2d
body: <p>I have two 2D-histograms, one containing a total number of shots and the other containing the total number of shots succeeded. I would like to divide these two histograms in order to have one with the success rate of shots per zone.</p>
  <p>This is the initial data frame :
  <a href="https://i.stack.imgur.com/oV2DY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oV2DY.png" alt="enter image description here" /></a></p>
  <p>This is my first 2D-histogram with the total number of shots :</p>
  <p><a href="https://i.stack.imgur.com/rgeQ5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rgeQ5.png" alt="enter image description here" /></a></p>
  <p>This is my second 2D-histogram with the total number of shots succeeded :</p>
  <p><a href="https://i.stack.imgur.com/KEBPq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KEBPq.png" alt="enter image description here" /></a></p>
  <p>This is my code for both histograms :</p>
  <pre><code>fig = plt.figure() #set up the figures
  fig.set_size_inches(10, 7)
  ax = fig.add_subplot(1,1,1)
  draw_pitch_horizontal(ax) #overlay our different objects on the pitch
  colors = {'Goal Kicked':'tab:blue','Goal Missed':'tab:red'}
  penalty = plt.hist2d(kick.nouveau_x,kick.nouveau_y, bins=[np.arange(0,130,10),np.arange(0,90,10)],cmap=plt.cm.Reds) 
  plt.ylim(-2, 82)
  plt.xlim(-2, 122)
  plt.colorbar()
  plt.title('Map des pénalités',fontsize=16)
  plt.axis('off')
  plt.show()
  </code></pre>
  <pre><code>fig.set_size_inches(10,7)
  ax = fig.add_subplot(1,1,1)
  draw_pitch_horizontal(ax) #overlay our different objects on the pitch
  colors = {'Goal Kicked':'tab:blue','Goal Missed':'tab:red'}
  kicked = plt.hist2d(kick[kick.outcome == 'Goal Kicked'].nouveau_x,kick[kick.outcome == 'Goal Kicked'].nouveau_y, bins=[np.arange(0,130,10),np.arange(0,90,10)],cmap=plt.cm.Reds)
  plt.ylim(-2, 82)
  plt.xlim(-2, 122)
  plt.colorbar()
  plt.title('Map des pénalités réussies',fontsize=16)
  plt.axis('off')
  plt.show() 
  </code></pre>
  <p>I tried to divide my variables penalty and kicked but then I have a list of arrays and I don't know how to plot it on my pitch.</p>