title: Identifying values from one histogram into another
body: <p>I have a program (a model about some population) that produces some data (what interests us: ranking and payoffs), with which I plot two histograms.</p>
  
  <ul>
  <li><strong>The data:</strong>
  I write two lists, <em>rank</em> and <em>payoffs</em>, in which the i-th index represents the position in a ranking and how much has earned the i-th member of the population. E.g:</li>
  </ul>
  
  <blockquote>
  <pre><code>rank    = [3, 6, 7, 15,..., 1, 2]
  payoffs = [334, 54, 123, 34,..., 12, 100]
  </code></pre>
  </blockquote>
  
  <ul>
  <li><p><strong>The histograms:</strong>
  I plot the lists rank and payoffs as histograms, and I get something like this:
  <a href="https://i.stack.imgur.com/fQRGum.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fQRGum.png" alt="Ranking"></a> <a href="https://i.stack.imgur.com/WUybwm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WUybwm.png" alt="Payoffs"></a></p></li>
  <li><p><strong>The problem:</strong>
  I want to identify <em>IN THE PAYOFFS' HISTOGRAM</em> where are the members with the <em>HIGHEST RANKING</em>. I do not know how to get them, in order to plot them with different color.</p></li>
  </ul>