title: How to turn off the ticks AND marks of a matlibplot axes?
body: <p>I want to plot 2 subplots by using matlibplot axes. Since these two subplots have the same ylabel and ticks, I want to turn off both the ticks AND marks of the second subplot. Following is my short script:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  ax1=plt.axes([0.1,0.1,0.4,0.8])
  ax1.plot(X1,Y1)
  ax2=plt.axes([0.5,0.1,0.4,0.8])
  ax2.plot(X2,Y2)
  </code></pre>
  
  <p>BTW, the X axis marks overlapped and not sure whether there is a neat solution or not. (A solution might be make the last mark invisible for each subplot except for the last one, but not sure how). Thanks!</p>