On Thu, Jun 4, 2009 at 11:31 AM, Robert Kern <[email protected]> wrote:
>
> On Thu, Jun 4, 2009 at 11:21, Ondrej Certik <[email protected]> wrote:
>>
>> On Thu, Jun 4, 2009 at 9:42 AM, William Stein <[email protected]> wrote:
>>>
>>> 2009/6/4 bill pines <[email protected]>:
>>>> 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.

Right, William just pointed out on the sage-windows list too. It was
my fault, I have to learn how things work in windows. But windows7 is
pretty cool, it looks quite nice.

Ondrej

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to