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
(12)
2
(3)
3
(2)
4
(15)
5
(4)
6
(8)
7
(14)
8
(10)
9
(6)
10
(1)
11
(5)
12
(7)
13
(7)
14
(1)
15
16
(1)
17
(2)
18
(4)
19
(2)
20
21
(1)
22
(2)
23
24
25
(2)
26
(1)
27
28
(4)
29
30
(1)
31






Showing 4 results of 4

From: <md...@us...> - 2008年08月05日 19:32:50
Revision: 5977
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5977&view=rev
Author: mdboom
Date: 2008年08月05日 19:32:44 +0000 (2008年8月05日)
Log Message:
-----------
[ 2033106 ] Wrong exception raised (typo) in axes3d.py
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/axes3d.py
Modified: trunk/matplotlib/lib/matplotlib/axes3d.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes3d.py	2008年08月05日 19:02:30 UTC (rev 5976)
+++ trunk/matplotlib/lib/matplotlib/axes3d.py	2008年08月05日 19:32:44 UTC (rev 5977)
@@ -1 +1 @@
-raise NotImplmentedError('axes3d is not supported in matplotlib-0.98. You may want to try the 0.91.x maintenance branch')
+raise NotImplementedError('axes3d is not supported in matplotlib-0.98. You may want to try the 0.91.x maintenance branch')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <md...@us...> - 2008年08月05日 19:02:35
Revision: 5976
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5976&view=rev
Author: mdboom
Date: 2008年08月05日 19:02:30 +0000 (2008年8月05日)
Log Message:
-----------
Fix RGBA arrays in collections.
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/axes.py
 trunk/matplotlib/lib/matplotlib/collections.py
 trunk/matplotlib/lib/matplotlib/patches.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py	2008年08月05日 17:44:55 UTC (rev 5975)
+++ trunk/matplotlib/lib/matplotlib/axes.py	2008年08月05日 19:02:30 UTC (rev 5976)
@@ -3797,14 +3797,18 @@
 # if color looks like a color string, an RGB tuple or a
 # scalar, then repeat it by nbars
 if (is_string_like(color) or
- (iterable(color) and len(color)==3 and nbars!=3) or
+ (iterable(color) and
+ len(color) in (3, 4) and
+ nbars != len(color)) or
 not iterable(color)):
 color = [color]*nbars
 
 # if edgecolor looks like a color string, an RGB tuple or a
 # scalar, then repeat it by nbars
 if (is_string_like(edgecolor) or
- (iterable(edgecolor) and len(edgecolor)==3 and nbars!=3) or
+ (iterable(edgecolor) and
+ len(edgecolor) in (3, 4) and
+ nbars != len(edgecolor)) or
 not iterable(edgecolor)):
 edgecolor = [edgecolor]*nbars
 
Modified: trunk/matplotlib/lib/matplotlib/collections.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/collections.py	2008年08月05日 17:44:55 UTC (rev 5975)
+++ trunk/matplotlib/lib/matplotlib/collections.py	2008年08月05日 19:02:30 UTC (rev 5976)
@@ -332,6 +332,7 @@
 """
 if c is None: c = mpl.rcParams['patch.facecolor']
 self._facecolors = _colors.colorConverter.to_rgba_array(c, self._alpha)
+ self._facecolors_original = c
 
 set_facecolors = set_facecolor
 
@@ -363,6 +364,7 @@
 else:
 if c is None: c = mpl.rcParams['patch.edgecolor']
 self._edgecolors = _colors.colorConverter.to_rgba_array(c, self._alpha)
+ self._edgecolors_original = c
 
 set_edgecolors = set_edgecolor
 
@@ -378,11 +380,13 @@
 else:
 artist.Artist.set_alpha(self, alpha)
 try:
- self._facecolors[:, 3] = alpha
+ self._facecolors = _colors.colorConverter.to_rgba_array(
+ self._facecolors_original, self._alpha)
 except (AttributeError, TypeError, IndexError):
 pass
 try:
- self._edgecolors[:, 3] = alpha
+ self._edgecolors = _colors.colorConverter.to_rgba_array(
+ self._edgecolors_original, self._alpha)
 except (AttributeError, TypeError, IndexError):
 pass
 
Modified: trunk/matplotlib/lib/matplotlib/patches.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/patches.py	2008年08月05日 17:44:55 UTC (rev 5975)
+++ trunk/matplotlib/lib/matplotlib/patches.py	2008年08月05日 19:02:30 UTC (rev 5976)
@@ -263,7 +263,6 @@
 gc.set_linewidth(self._linewidth)
 gc.set_linestyle(self._linestyle)
 
- gc.set_alpha(self._alpha)
 gc.set_antialiased(self._antialiased)
 self._set_gc_clip(gc)
 gc.set_capstyle('projecting')
@@ -271,8 +270,11 @@
 if (not self.fill or self._facecolor is None or
 (cbook.is_string_like(self._facecolor) and self._facecolor.lower()=='none')):
 rgbFace = None
+ gc.set_alpha(1.0)
 else:
- rgbFace = colors.colorConverter.to_rgb(self._facecolor)
+ r, g, b, a = colors.colorConverter.to_rgba(self._facecolor, self._alpha)
+ rgbFace = (r, g, b)
+ gc.set_alpha(a)
 
 if self._hatch:
 gc.set_hatch(self._hatch )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <md...@us...> - 2008年08月05日 17:44:57
Revision: 5975
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5975&view=rev
Author: mdboom
Date: 2008年08月05日 17:44:55 +0000 (2008年8月05日)
Log Message:
-----------
Fix Nx3 color array bug.
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/colors.py
Modified: trunk/matplotlib/lib/matplotlib/colors.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/colors.py	2008年08月05日 17:25:12 UTC (rev 5974)
+++ trunk/matplotlib/lib/matplotlib/colors.py	2008年08月05日 17:44:55 UTC (rev 5975)
@@ -337,11 +337,21 @@
 # If c is a list it must be maintained as the same list
 # with modified items so that items can be appended to
 # it. This is needed for examples/dynamic_collections.py.
- if not isinstance(c, (list, np.ndarray)): # specific; don't need duck-typing
- c = list(c)
+ if isinstance(c, np.ndarray):
+ if len(c.shape) != 2:
+ raise ValueError("Color array must be two-dimensional")
+ if c.shape[1] != 4:
+ output = np.zeros((c.shape[0], 4))
+ else:
+ output = c
+ elif not isinstance(c, list):
+ output = list(c)
+ else:
+ output = c
+
 for i, cc in enumerate(c):
- c[i] = self.to_rgba(cc, alpha) # change in place
- result = c
+ output[i] = self.to_rgba(cc, alpha) # change in place
+ result = output
 return np.asarray(result, np.float_)
 
 colorConverter = ColorConverter()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <md...@us...> - 2008年08月05日 17:25:15
Revision: 5974
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5974&view=rev
Author: mdboom
Date: 2008年08月05日 17:25:12 +0000 (2008年8月05日)
Log Message:
-----------
[ 2031308 ] FontProperties and Latex code (FontProperties should be
copied into the text instance so they can be re-used without side
effects)
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/text.py
Modified: trunk/matplotlib/lib/matplotlib/text.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/text.py	2008年08月04日 18:43:08 UTC (rev 5973)
+++ trunk/matplotlib/lib/matplotlib/text.py	2008年08月05日 17:25:12 UTC (rev 5974)
@@ -647,7 +647,7 @@
 """
 if is_string_like(fp):
 fp = FontProperties(fp)
- self._fontproperties = fp
+ self._fontproperties = fp.copy()
 
 artist.kwdocd['Text'] = artist.kwdoc(Text)
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Showing 4 results of 4

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