I'm the Google developer in charge of packaging Matplotlib on App Engine, and we're very glad you took interest in making it work better and sharing it publicly. RequestHandler ): def get ( self ): self. clf () if _name_ = "_main_" : print dynamic_png () print dynamic_svg () else : class MainHandler ( webapp2. savefig ( rv, format = "svg" ) return rv. title ( "Dynamic SVG" ) for i in range ( 5 ): plt. ![]() title ( "Dynamic PNG" ) for i in range ( 5 ): plt. exception ( "trouble" ) def dynamic_png (): try : plt. ![]() environ )) try : import numpy, matplotlib, matplotlib.pyplot as plt except : logging. ![]() getcwdu () import subprocess def no_popen ( * args, ** kwargs ): raise OSError ( "forbjudet" ) subprocess. exception ( "no webapp" ) import pprint import os import StringIO os. #!/usr/bin/python import logging try : import webapp2 except : logging.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |