Re: [Matplotlib-users] data free margin

2011-11-24 Thread C M
> > I don't know if this will work for you, but in your situation I would > probably just make another axis for the data with no y value. Like, a short > squat axis directly below the main axis. > > -Jeff > Thanks. That crossed my mind, but I never tried it yet. I thought it would take up too m

Re: [Matplotlib-users] data free margin

2011-11-23 Thread Jeffrey Blackburne
On Nov 23, 2011, at 4:09 PM, C M wrote: > > > On Tue, Nov 22, 2011 at 3:09 PM, Nicolas Rougier > wrote: > > 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.sho

Re: [Matplotlib-users] data free margin

2011-11-23 Thread C M
On Tue, Nov 22, 2011 at 3:09 PM, Nicolas Rougier wrote: > > 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() > Thanks. That works in your example, but in m

Re: [Matplotlib-users] data free margin

2011-11-22 Thread Nicolas Rougier
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(n