SourceForge logo
SourceForge logo
Menu

matplotlib-checkins — Commit notification. DO NOT POST to this list, just subscribe to it.

You can subscribe to this list here.

2007 Jan
Feb
Mar
Apr
May
Jun
Jul
(115)
Aug
(120)
Sep
(137)
Oct
(170)
Nov
(461)
Dec
(263)
2008 Jan
(120)
Feb
(74)
Mar
(35)
Apr
(74)
May
(245)
Jun
(356)
Jul
(240)
Aug
(115)
Sep
(78)
Oct
(225)
Nov
(98)
Dec
(271)
2009 Jan
(132)
Feb
(84)
Mar
(74)
Apr
(56)
May
(90)
Jun
(79)
Jul
(83)
Aug
(296)
Sep
(214)
Oct
(76)
Nov
(82)
Dec
(66)
2010 Jan
(46)
Feb
(58)
Mar
(51)
Apr
(77)
May
(58)
Jun
(126)
Jul
(128)
Aug
(64)
Sep
(50)
Oct
(44)
Nov
(48)
Dec
(54)
2011 Jan
(68)
Feb
(52)
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
(1)
2018 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S


1
(8)
2
3
4
(1)
5
(2)
6
(7)
7
(3)
8
(7)
9
(3)
10
(2)
11
(4)
12
(9)
13
14
15
16
17
(5)
18
(1)
19
20
21
22
23
24
25
26
27
28





Showing 1 results of 1

From: <ef...@us...> - 2011年02月04日 19:19:03
Revision: 8945
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8945&view=rev
Author: efiring
Date: 2011年02月04日 19:18:57 +0000 (2011年2月04日)
Log Message:
-----------
Image generation no longer generates double-precision rgba; patch by C. Gohlke
Image generation via color mapping was using doubles for rgba,
after which the _image module was converting rgba to uint8;
this patch saves time and memory by using the existing ability
of the colormap to generate uint8 directly.
Modified Paths:
--------------
 trunk/matplotlib/CHANGELOG
 trunk/matplotlib/lib/matplotlib/image.py
Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG	2011年02月01日 17:57:23 UTC (rev 8944)
+++ trunk/matplotlib/CHANGELOG	2011年02月04日 19:18:57 UTC (rev 8945)
@@ -1,3 +1,7 @@
+2011年02月04日 Changed imshow to use rgba as uint8 from start to
+ finish, instead of going through an intermediate
+ step as double precision; thanks to Christoph Gohlke. - EF
+
 2011年01月13日 Added zdir and offset arguments to contourf3d to
 bring contourf3d in feature parity with contour3d. - BVR
 
@@ -8,7 +12,7 @@
 2011年01月03日 Turn off tick labeling on interior subplots for
 pyplots.subplots when sharex/sharey is True. - JDH
 
-2010年12月29日 Implment axes_divider.HBox and VBox. -JJL
+2010年12月29日 Implement axes_divider.HBox and VBox. -JJL
 
 
 2010年11月22日 Fixed error with Hammer projection. - BVR
Modified: trunk/matplotlib/lib/matplotlib/image.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/image.py	2011年02月01日 17:57:23 UTC (rev 8944)
+++ trunk/matplotlib/lib/matplotlib/image.py	2011年02月04日 19:18:57 UTC (rev 8945)
@@ -138,7 +138,7 @@
 def _get_unsampled_image(self, A, image_extents, viewlim):
 """
 convert numpy array A with given extents ([x1, x2, y1, y2] in
- data coordinate) into the Image, given the vielim (should be a
+ data coordinate) into the Image, given the viewlim (should be a
 bbox instance). Image will be clipped if the extents is
 significantly larger than the viewlim.
 """
@@ -193,17 +193,17 @@
 self._oldyslice = yslice
 
 if self._imcache is None:
- if self._A.dtype == np.uint8 and len(self._A.shape) == 3:
+ if self._A.dtype == np.uint8 and self._A.ndim == 3:
 im = _image.frombyte(self._A[yslice,xslice,:], 0)
 im.is_grayscale = False
 else:
 if self._rgbacache is None:
- x = self.to_rgba(self._A, self._alpha)
+ x = self.to_rgba(self._A, self._alpha, bytes=True)
 self._rgbacache = x
 else:
 x = self._rgbacache
- im = _image.fromarray(x[yslice,xslice], 0)
- if len(self._A.shape) == 2:
+ im = _image.frombyte(x[yslice,xslice,:], 0)
+ if self._A.ndim == 2:
 im.is_grayscale = self.cmap.is_gray()
 else:
 im.is_grayscale = False
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Showing 1 results of 1

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 によって変換されたページ (->オリジナル) /