Is that what you want ? No ticks, no labels:
import matplotlib.pyplot as plt plt.plot(np.arange(10), np.arange(10)) plt.ylim(0,10) plt.yticks(np.linspace(3,10,8)) plt.show() Ticks but no labels: import matplotlib.pyplot as plt plt.plot(np.arange(10), np.arange(10)) plt.ylim(0,10) plt.yticks(np.linspace(0,10,11), ['']*3 + ['%d' % i for i in linspace(3,10,8)]) plt.show() Nicolas On Nov 22, 2011, at 20:13 , C M wrote: > What's the best way in Matplotlib to have a y axis that doesn't have > ticks/axis numbers near the bottom of the graph? I don't know if it would be > specified as the bottom 1/10th of the graph or x amount of pixels or inches > or whatever...just need a bit of extra "y-less" space there to plot values > that have an x value but no y value. I'm assuming this would be done with a > Formatter or Locator, but wasn't sure how to go about it. > > See attached image.... > > Thanks, > Che > <y_axis_lower_margin.jpg>------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d_______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users