title: How can I plot from a maximum range to a minimum range in Python
body: <p>I have some troubles trying to plot a figure in python for a homework I had in university. I want to plot a figure from the maxim range to the minimum range in the x-axis. My code is the next one:</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  
  # function that plots the cummulative histogram
  def plotFunction( array , numberBins ):
  
      # Array of elements that will be plotted on log scale
      elements = array
  
      # evaluate the histogram
      values, base = np.histogram(elements, bins= len( numberBins ) )
      #evaluate the cumulative
      cumulative = np.cumsum(values)
      # plot the cumulative function
      plt.plot(  cumulative , base[:-1] , c='blue')
  
  
      plt.show()
  </code></pre>
  
  <p>I would like to set the axis the other way around, from 200 to 20.</p>