title: matplotlib plot rotation 90 degree is not happening
body: <p>I am finding the edges of the images using matplotlib.I have done almost.And i want to rotate the image as 90 degree in plot.But it is not working for me.I have tried many things.Below is my code what i have tried.</p>
  
  <pre><code>from scipy import misc
  from skimage import color,measure
  import matplotlib.pyplot as plt
  from skimage.draw import ellipse
  from skimage.measure import find_contours, approximate_polygon, subdivide_polygon
  from PIL import Image
  import numpy as np
  
  filename = r"images/5601.jpg"
  fimg = misc.imread(filename)
  gimg = color.colorconv.rgb2grey(fimg)
  contours = measure.find_contours(gimg, 0.8)
  for n, contour in enumerate(contours):
      plt.plot(contour[:, 1], contour[:, 0], linewidth=2)
  
  contour = contours[0]
  new_s = contour.copy()
  appr_s = approximate_polygon(new_s, tolerance=0.8)
  fig, ax2 = plt.subplots(ncols=1, figsize=(7, 5))
  ax2.plot(contour[:, 0], contour[:, 1])
  
  #these are all what i have tried
  #plt.xticks(rotation='vertical')
  # for tick in ax2.get_xticklabels():
      # tick.set_rotation(45)
  #plt.setp(ax2.xaxis.get_majorticklabels(), rotation=70 )
  #ax2.tick_params(axis='both', rotation=45)
  #fig.autofmt_xdate(bottom=0.5, rotation=90, ha='right')
  #plt.hist(ax2, bins=10, orientation='horizontal')
  
  
  plt.axis('off')
  plt.tick_params(axis='both' , left='off', top='off', right='off', bottom='off', labelleft='off', labeltop='off', labelright='off', labelbottom='off')
  plt.savefig("test.svg", format="svg")
  </code></pre>
  
  <p>The output is:</p>
  
  <p><img src="https://i.stack.imgur.com/7Gm1O.jpg" width="200" ></p>
  
  <p>Expected output is:</p>
  
  <p><img src="https://i.stack.imgur.com/uVDpc.jpg" width="150" height="200"></p>
  
  <p>Thanks in advance.</p>