Re: [Matplotlib-users] adjusting space between axes label and axes

2009-12-02 Thread Jae-Joon Lee
On Sun, Nov 22, 2009 at 11:16 AM, per freem wrote: > is there an existing parameter that just controls the distance between > the xticks and the label? As you first tried (with your example with axes_grid), labelpad parameter does what you want. plt.xlabel("xlabel", labelpad=0) or ax.xaxis.lab

Re: [Matplotlib-users] adjusting space between axes label and axes

2009-11-22 Thread per freem
Hi Jae-Joon and others, i switched to using splines, but i still cannot see how to adjust the space between the axis labels and the ticks of the axes. right now the labels are too far away. here is my code: fig = plt.figure() x = np.linspace(0,2*np.pi,100) y = 2*np.sin(x) ax = fig.add_subplot(

Re: [Matplotlib-users] adjusting space between axes label and axes

2009-11-13 Thread Jae-Joon Lee
I think I have said this a few times, but if you're using axes_grid toolkit, it is likely that most of the ticks, ticklabels and axis-related command of the original matplotlib may NOT work. And that is why I recommend you to use the spines instead. Anyhow, adjusting the pad between axis and the

Re: [Matplotlib-users] adjusting space between axes label and axes

2009-11-13 Thread Gökhan Sever
On Fri, Nov 13, 2009 at 1:02 PM, per freem wrote: > thanks for the suggestion, though this does not work for me in the > following example: > > import matplotlib > matplotlib.use('PDF') > import matplotlib.pyplot as plt > from matplotlib import rc > rc('font',**{'family':'sans-serif','sans-serif'

Re: [Matplotlib-users] adjusting space between axes label and axes

2009-11-13 Thread per freem
thanks for the suggestion, though this does not work for me in the following example: import matplotlib matplotlib.use('PDF') import matplotlib.pyplot as plt from matplotlib import rc rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) plt.rcParams['ps.useafm'] = True rc('font',**{'fam

Re: [Matplotlib-users] adjusting space between axes label and axes

2009-11-13 Thread Gökhan Sever
On Fri, Nov 13, 2009 at 12:36 PM, per freem wrote: > hi all, > > how can the space between the label (e.g. thing created by > plt.xlabel('mylabel')) and the axes be adjusted? i am not talking > about the space between the ticklabels of the axes and the axes > themselves (which is set by 'xtick.ma

[Matplotlib-users] adjusting space between axes label and axes

2009-11-13 Thread per freem
hi all, how can the space between the label (e.g. thing created by plt.xlabel('mylabel')) and the axes be adjusted? i am not talking about the space between the ticklabels of the axes and the axes themselves (which is set by 'xtick.major.pad' or 'ytick.major.pad') but between the overall axes labe