tick labels fall off the figure

Dear Experts,

I’m having a little problem with labels in a bar chart. When I do something like

labels = [‘one’,‘two’,‘threeeeeeeeeee’]
pylab.bar(range(len(labels)),range(len(labels)))

pylab.xticks(range(len(labels)),labels,rotation=‘vertical’)

the long label isn’t completely visible in the figure. How do I tell pylab to arrange things so that all the labels are visible?

Thanks,

-Emin

Try making your figure window larger (using figure(figsize=(x,y)) or leaving
more room between your axes and you figure boundary (either using the
subplots_adjust gui button or axes([x_left, y_bottom, x_right, y_top])), or a
combination of both.

Darren

···

On Wednesday 07 March 2007 03:13:13 pm Emin.shopper Martinian.shopper wrote:

Dear Experts,

I'm having a little problem with labels in a bar chart. When I do something
like

labels = ['one','two','threeeeeeeeeee']
pylab.bar(range(len(labels)),range(len(labels)))
pylab.xticks(range(len(labels)),labels,rotation='vertical')

the long label isn't completely visible in the figure. How do I tell pylab
to arrange things so that all the labels are visible?

Thanks,
-Emin