title: How to show min and max values at the end of the axes
body: <p>I generate plots like below:</p>
  <pre><code>from   pylab              import *
  import numpy              as np
  import matplotlib.pyplot  as plt
  import matplotlib.ticker
  import matplotlib.ticker as ticker
  
  rcParams['axes.linewidth']   = 2 # set the value    globally
  rcParams['font.size']        = 16# set the value globally
  rcParams['font.family']      = ['DejaVu Sans']
  rcParams['mathtext.fontset'] = 'stix'
  rcParams['legend.fontsize']  = 24
  rcParams['axes.prop_cycle']  = cycler(color=['grey','b','g','r','orange']) 
  rc('lines', linewidth=2, linestyle='-',marker='o')
  rcParams['axes.xmargin'] = 0
  rcParams['axes.ymargin'] = 0
  
  t = arange(0,21,1) 
  v = 2.0
  s = v*t
  
  plt.figure(figsize=(12, 4))
  plt.plot(t,s,label='$s=%1.1f\cdot t$'%v)
  plt.title('Wykres drogi w czasie $s=v\cdot t$')
  plt.xlabel('Czas $t$, s')
  plt.ylabel('Droga $s$, m')
  
  plt.autoscale(enable=True, axis='both', tight=None)
  legend(loc='best')
  plt.xlim(min(t),max(t))
  plt.ylim(min(s),max(s))
  plt.grid()
  
  plt.show()
  </code></pre>
  <p><img src="https://i.stack.imgur.com/aTOcG.png" alt="Generated picture" /></p>
  <p>When I am changing the value t = arange(0,21,1) for example to t = arange(0,20,1) which gives me for example on the x axis max value= 19.0 my max value dispirs from the x axis. The same situation is of course with y axis.</p>
  <p><img src="https://i.stack.imgur.com/0Nmbl.png" alt="Wrong picture" /></p>
  <p>My question is how to force matplotlib to produce always plots where on the axes are max values just <strong>at the end of the axes</strong> like should be always for my purposes or should be possible to chose like an option?</p>
  <p><a href="https://drive.google.com/file/d/1pzC4NXZTJ8YPtbjpf6lo7daJ9t9BsDd6/view?usp=sharing" rel="nofollow noreferrer">Imiage from my program in Fortan I did some years ago</a></p>
  <p>Matplotlib is more efficiens that I use it but there should be an opition like that (the picture above).</p>
  <p>In this way I can always observe max min in text windows or do take addiional steps to make sure about max min values. I would like to read them from axes and the question is ...Are there such possibilites in mathplotlib ??? If not I will close the post.</p>
  <p><a href="https://drive.google.com/file/d/1LaKy9i5z9uXISM0bKu8o3VnmktvvVvE_/view?usp=sharing" rel="nofollow noreferrer">Axes I am thinking about more or less</a></p>