On Thu, Jun 4, 2009 at 11:21, Ondrej Certik <ond...@certik.cz> wrote: > > On Thu, Jun 4, 2009 at 9:42 AM, William Stein <wst...@gmail.com> wrote: >> >> 2009/6/4 bill pines <billpi...@gmail.com>: >>> I am wondering if matplotlib working on windows port of sage, examples? >> >> Yes. Though I think we currently build it with no GUI backends, so >> you can create plots, but you can only render them to PNG's. (You use >> savefig, I think.) It would be nice for a windows guru to fix things > > Unfortunately, this doesn't work, at least for me: > > In [6]: pylab.savefig("C:\Users\Ondrej\Desktop\a.png") > --------------------------------------------------------------------------- > IOError Traceback (most recent call last) > [...] > C:\Program Files\Sage > Math\local\python\lib\site-packages\matplotlib\backends\ba > ckend_agg.py in print_png(self, filename_or_obj, *args, **kwargs) > 326 renderer.dpi = self.figure.dpi > 327 if is_string_like(filename_or_obj): > --> 328 filename_or_obj = file(filename_or_obj, 'wb') > 329 _png.write_png(renderer._renderer.buffer_rgba(0, 0), > 330 renderer.width, renderer.height, > > IOError: [Errno 22] invalid mode ('wb') or filename: > 'C:\\Users\\Ondrej\\Desktop > \x07.png'
Watch your backslashes! \a is the bell character. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---