how to remove an xlabel?

Hi All,

I'm using plot_date to plot some dates, but this sets an xlabel, and I don't want the plot to have an xlabel.

How do I remove it?

I tried:

xlabel(None)

...but that just set the xlabel to 'None'...

cheers,

Chris

···

--
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk

Hello Chris,

you can try xlabel of an empty string:

xlabel(' ')

regards
Matthias

···

On Monday 17 March 2008 17:11, Chris Withers wrote:

Hi All,

I'm using plot_date to plot some dates, but this sets an xlabel, and I
don't want the plot to have an xlabel.

How do I remove it?

I tried:

xlabel(None)

...but that just set the xlabel to 'None'...

cheers,

Chris

Matthias Michler wrote:

you can try xlabel of an empty string:
xlabel(' ')

Thanks, and yes, a truly empty string xlabel(''), works :slight_smile:

cheers,

Chris

···

--
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk