On Tue, Aug 12, 2008 at 5:16 AM, Zainal Abidin <[EMAIL PROTECTED]> wrote: > I have a trouble when displat a PNG file which generated from matplotlib > here is the script from > http://www.scipy.org/Cookbook/Matplotlib/Using_MatPlotLib_in_a_CGI_script > there is no image in the web browser, is there anything wrog with the > script? > please help me, I am a newbie in matplotlib ;)
One mistake I see is that you are calling use('Agg') after importing pylab. According to the use docstring: Note: this function must be called *before* importing pylab for the first time; or, if you are not using pylab, it must be called before importing matplotlib.backends. Not sure if this will solve your problem, but it should be fixed. JDH ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users