title: How to write exact values for points on line graphs?
body: <pre><code>import matplotlib.pyplot as plt
  
  objects = ('A', 'B', 'C')
  avgA, avgB, avgC = 0.009990256984352774, 0.0014206548643907065, 0.055161861569464204
  performance = [avgA, avgB, avgC]
  exact = plt.plot(performance, alpha=0.5, color= 'purple')
  plt.xlabel('Compression Method')
  plt.ylabel('Average Distance b/w Uncompressed &amp; Compressed Point')
  plt.title('Evaluation of Different Compression Methods - Averages')
  plt.tight_layout()
  plt.show()
  </code></pre>
  
  <p>There are 3 issues with my graph:</p>
  
  <ol>
  <li><p>I'd like the X axis labels to be A, B &amp; C instead of 0.0 ,1.0 &amp; 2.0. The values on y-axis are correct.</p></li>
  <li><p>How can I display the <strong>exact value on my line graph for A/B/C?</strong> For instance, A on the x axis corresponds to 0.00999 on the y axis but on the graph the exact value isn't written anywhere. Like in bar charts we can write values on top of the bar. Can we do so for line graphs?</p></li>
  <li><p>Also, how can I <strong>improve the scale</strong>? Currently, my graph displays y axis values from 0.0 to 0.5 but I want to make it <strong>more precise</strong>.
  <a href="https://i.stack.imgur.com/bu6m8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bu6m8.png" alt="enter image description here"></a></p></li>
  </ol>