title: Mark pixel points on images from csv files
body: <p><a href="https://i.stack.imgur.com/yDwxM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yDwxM.png" alt="enter image description here" /></a>I have a large data set having pixel coordinates for different image number. And I want to mark these pixel coordinates on those images. Table is as follows</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th style="text-align: left;">Image number</th>
  <th style="text-align: center;">x</th>
  <th style="text-align: right;">y</th>
  <th style="text-align: right;">color</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td style="text-align: left;">1</td>
  <td style="text-align: center;">3896</td>
  <td style="text-align: right;">467</td>
  <td style="text-align: right;">c1</td>
  </tr>
  <tr>
  <td style="text-align: left;">2</td>
  <td style="text-align: center;">36</td>
  <td style="text-align: right;">6789</td>
  <td style="text-align: right;">c1</td>
  </tr>
  <tr>
  <td style="text-align: left;">2</td>
  <td style="text-align: center;">498</td>
  <td style="text-align: right;">46</td>
  <td style="text-align: right;">c2</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>and so on...</p>
  <p>So I started working and code is as follows:</p>
  <pre><code>df=pd.csv_read(filepath to csv file having above data)
  color_sc=scheme = {
  &quot;c1&quot;: &quot;r&quot;, 
  &quot;c2&quot;: &quot;g&quot;, 
  &quot;c3&quot;: &quot;b&quot;, }
  import glob 
  from PIL import Image
  
  images = glob.glob(&quot;image/*.jpg&quot;)
  for image in images:
      plt.scatter(x=df[&quot;x&quot;], y=df[&quot;y&quot;], c = color_sc[df[&quot;color&quot;] if df[&quot;color&quot;] in color_sc)
      plt.show()
  </code></pre>
  <p>Please help me how to iterate through images and mark coordinates from the table on those images.</p>