SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

From: <md...@us...> - 2008年08月14日 13:38:04
Revision: 6036
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6036&view=rev
Author: mdboom
Date: 2008年08月14日 13:38:01 +0000 (2008年8月14日)
Log Message:
-----------
Remove deprecated Numpy call.
Modified Paths:
--------------
 trunk/matplotlib/src/_backend_gdk.c
Modified: trunk/matplotlib/src/_backend_gdk.c
===================================================================
--- trunk/matplotlib/src/_backend_gdk.c	2008年08月13日 18:25:26 UTC (rev 6035)
+++ trunk/matplotlib/src/_backend_gdk.c	2008年08月14日 13:38:01 UTC (rev 6036)
@@ -12,15 +12,6 @@
 static PyTypeObject *_PyGdkPixbuf_Type;
 #define PyGdkPixbuf_Type (*_PyGdkPixbuf_Type)
 
-/* Implement the equivalent to gtk.gdk.Pixbuf.get_pixels_array()
- * To solve these problems with the pygtk version:
- * 1) It works for Numeric, but not numarray
- * 2) Its only available if pygtk is compiled with Numeric support
- * Fedora 1,2,3 has PyGTK, but not Numeric and so does not have
- * Pixbuf.get_pixels_array().
- * Fedora 4 does have PyGTK, Numeric and Pixbuf.get_pixels_array()
- */
-
 static PyObject *
 pixbuf_get_pixels_array(PyObject *self, PyObject *args)
 {
@@ -45,7 +36,7 @@
 if (gdk_pixbuf_get_has_alpha(gdk_pixbuf))
 dims[2] = 4;
 
- array = (PyArrayObject *)PyArray_FromDimsAndData(3, dims, PyArray_UBYTE,
+ array = (PyArrayObject *)PyArray_SimpleNewFromData(3, dims, PyArray_UBYTE,
 			 (char *)gdk_pixbuf_get_pixels(gdk_pixbuf));
 if (array == NULL)
 return NULL;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /