Re: [Matplotlib-users] Matplotlib running under cron

2009-04-23 Thread Jouni K . Seppänen
john.ba...@worstead.co.uk writes: > I recently changed some of the colours, using tuples of RGB values instead > of the standard colors and now the scripts will run from the command line, > but not as scheduled cron jobs and I get the following error: > > Unable to access the X Display, is $DISPLA

Re: [Matplotlib-users] Matplotlib running under cron

2009-04-23 Thread Michael Droettboom
This is usually caused by having an interactive backend (such as Gtk, Qt, Tk) which would require X11. Try setting your backend to "Agg". import matplotlib matplotlib.use("Agg") Cheers, Mike john.ba...@worstead.co.uk wrote: > I have been successfully producing graphics as pngs with matplot

[Matplotlib-users] Matplotlib running under cron

2009-04-23 Thread john . bacon
I have been successfully producing graphics as pngs with matplotlib and running them as cron jobs with Linux for some time. These graphics used "standard" colors. I recently changed some of the colours, using tuples of RGB values instead of the standard colors and now the scripts will run from the

[Matplotlib-users] Matplotlib running under cron

2009-04-23 Thread olslewfoot
I have been successfully producing graphics as pngs with matplotlib and running them as cron jobs with Linux for some time. These graphics used "standard" colors. I recently changed some of the colours, using tuples of RGB values instead of the standard colors and now the scripts will run from th