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
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(
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
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'
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
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
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