On 5/12/2012 6:16 AM, Michael Droettboom wrote:
On 05/12/2012 07:21 AM, Mark Lawrence wrote:
My original offer (made several months ago) to help test this on Windows
still stands :)
Thanks. Does git master build and pass the unit tests on Windows?
Mike
git master builds and tests OK on win32-py2.7.
With the attached patch git master builds and works (in practice) OK on
win-amd64-py3.2 but there are many test errors of type "RuntimeError:
Could not open facefile X:\Python32\...\ttf\Vera.ttf;
Cannot_Open_Resource". I do delete the ~\.matplotlib folder before
running the tests and can verify that
FT2Font(r"X:\Python32\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf")
works.
Christoph
diff --git a/lib/matplotlib/backends/backend_tkagg.py
b/lib/matplotlib/backends/backend_tkagg.py
index f93d7f9..8a78a44 100644
--- a/lib/matplotlib/backends/backend_tkagg.py
+++ b/lib/matplotlib/backends/backend_tkagg.py
@@ -185,7 +185,7 @@ class FigureCanvasTkAgg(FigureCanvasAgg):
master=master, width=w, height=h, borderwidth=4)
self._tkphoto = Tk.PhotoImage(
master=self._tkcanvas, width=w, height=h)
- self._tkcanvas.create_image(w/2, h/2, image=self._tkphoto)
+ self._tkcanvas.create_image(w//2, h//2, image=self._tkphoto)
self._resize_callback = resize_callback
self._tkcanvas.bind("<Configure>", self.resize)
self._tkcanvas.bind("<Key>", self.key_press)
diff --git a/lib/matplotlib/cbook.py b/lib/matplotlib/cbook.py
index c9f2053..08a5247 100644
--- a/lib/matplotlib/cbook.py
+++ b/lib/matplotlib/cbook.py
@@ -639,7 +639,7 @@ def _get_data_server(cache_dir, baseurl):
else:
data = response.read()
self.cache_file(req.get_full_url(), data, response.headers)
- result = addinfourl(StringIO.StringIO(data),
+ result = addinfourl(data,
response.headers,
req.get_full_url())
result.code = response.code
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel