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


Showing 3 results of 3

From: <md...@us...> - 2010年09月14日 15:59:43
Revision: 8701
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8701&view=rev
Author: mdboom
Date: 2010年09月14日 15:59:35 +0000 (2010年9月14日)
Log Message:
-----------
Merged revisions 8699-8700 via svnmerge from 
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint
........
 r8699 | mdboom | 2010年09月14日 11:21:21 -0400 (2010年9月14日) | 2 lines
 
 Fix semi-transparent Gouraud triangle rendering in SVG backend.
........
 r8700 | mdboom | 2010年09月14日 11:53:59 -0400 (2010年9月14日) | 2 lines
 
 Fix mismatched opening/closing group.
........
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/backends/backend_svg.py
 trunk/matplotlib/lib/mpl_toolkits/axisartist/axis_artist.py
Property Changed:
----------------
 trunk/matplotlib/
Property changes on: trunk/matplotlib
___________________________________________________________________
Modified: svnmerge-integrated
 - /trunk/matplotlib:1-7315 /branches/mathtex:1-7263 /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7253 /branches/v1_0_maint:1-8697
 + /branches/mathtex:1-7263 /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7253 /branches/v1_0_maint:1-8700 /trunk/matplotlib:1-7315
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_svg.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_svg.py	2010年09月14日 15:53:59 UTC (rev 8700)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_svg.py	2010年09月14日 15:59:35 UTC (rev 8701)
@@ -325,6 +325,11 @@
 # opposite edge. Underlying these three gradients is a solid
 # triangle whose color is the average of all three points.
 
+ avg_color = np.sum(colors[:, :], axis=0) / 3.0
+ # Just skip fully-transparent triangles
+ if avg_color[-1] == 0.0:
+ return
+
 trans_and_flip = self._make_flip_transform(trans)
 tpoints = trans_and_flip.transform(points)
 write = self._svgwriter.write
@@ -334,7 +339,7 @@
 x1, y1 = points[i]
 x2, y2 = points[(i + 1) % 3]
 x3, y3 = points[(i + 2) % 3]
- c = colors[i][:3]
+ c = colors[i][:]
 
 if x2 == x3:
 xb = x2
@@ -352,8 +357,8 @@
 
 write('<linearGradient id="GR%x_%d" x1="%f" y1="%f" x2="%f" y2="%f" gradientUnits="userSpaceOnUse">' %
 (self._n_gradients, i, x1, y1, xb, yb))
- write('<stop offset="0" stop-color="%s" stop-opacity="1.0"/>' % rgb2hex(c))
- write('<stop offset="1" stop-color="%s" stop-opacity="0.0"/>' % rgb2hex(c))
+ write('<stop offset="0" style="stop-color:%s;stop-opacity:%f"/>' % (rgb2hex(c), c[-1]))
+ write('<stop offset="1" style="stop-color:%s;stop-opacity:0"/>' % rgb2hex(c))
 write('</linearGradient>')
 
 # Define the triangle itself as a "def" since we use it 4 times
@@ -361,11 +366,11 @@
 (self._n_gradients, x1, y1, x2, y2, x3, y3))
 write('</defs>\n')
 
- avg_color = np.sum(colors[:, :3], axis=0) / 3.0
- write('<use xlink:href="#GT%x" fill="%s"/>\n' %
- (self._n_gradients, rgb2hex(avg_color)))
+ avg_color = np.sum(colors[:, :], axis=0) / 3.0
+ write('<use xlink:href="#GT%x" fill="%s" fill-opacity="%f"/>\n' %
+ (self._n_gradients, rgb2hex(avg_color), avg_color[-1]))
 for i in range(3):
- write('<use xlink:href="#GT%x" fill="url(#GR%x_%d)" filter="url(#colorAdd)"/>\n' %
+ write('<use xlink:href="#GT%x" fill="url(#GR%x_%d)" fill-opacity="1" filter="url(#colorAdd)"/>\n' %
 (self._n_gradients, self._n_gradients, i))
 
 self._n_gradients += 1
Modified: trunk/matplotlib/lib/mpl_toolkits/axisartist/axis_artist.py
===================================================================
--- trunk/matplotlib/lib/mpl_toolkits/axisartist/axis_artist.py	2010年09月14日 15:53:59 UTC (rev 8700)
+++ trunk/matplotlib/lib/mpl_toolkits/axisartist/axis_artist.py	2010年09月14日 15:59:35 UTC (rev 8701)
@@ -132,9 +132,9 @@
 if self._invalid:
 self.recache()
 
+ if not self._visible: return
 renderer.open_group('line2d')
 
- if not self._visible: return
 gc = renderer.new_gc()
 self._set_gc_clip(gc)
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8700
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8700&view=rev
Author: mdboom
Date: 2010年09月14日 15:53:59 +0000 (2010年9月14日)
Log Message:
-----------
Fix mismatched opening/closing group.
Modified Paths:
--------------
 branches/v1_0_maint/lib/mpl_toolkits/axisartist/axis_artist.py
Modified: branches/v1_0_maint/lib/mpl_toolkits/axisartist/axis_artist.py
===================================================================
--- branches/v1_0_maint/lib/mpl_toolkits/axisartist/axis_artist.py	2010年09月14日 15:21:21 UTC (rev 8699)
+++ branches/v1_0_maint/lib/mpl_toolkits/axisartist/axis_artist.py	2010年09月14日 15:53:59 UTC (rev 8700)
@@ -132,9 +132,9 @@
 if self._invalid:
 self.recache()
 
+ if not self._visible: return
 renderer.open_group('line2d')
 
- if not self._visible: return
 gc = renderer.new_gc()
 self._set_gc_clip(gc)
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8699
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8699&view=rev
Author: mdboom
Date: 2010年09月14日 15:21:21 +0000 (2010年9月14日)
Log Message:
-----------
Fix semi-transparent Gouraud triangle rendering in SVG backend.
Modified Paths:
--------------
 branches/v1_0_maint/lib/matplotlib/backends/backend_svg.py
Modified: branches/v1_0_maint/lib/matplotlib/backends/backend_svg.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/backends/backend_svg.py	2010年09月11日 19:13:32 UTC (rev 8698)
+++ branches/v1_0_maint/lib/matplotlib/backends/backend_svg.py	2010年09月14日 15:21:21 UTC (rev 8699)
@@ -325,6 +325,11 @@
 # opposite edge. Underlying these three gradients is a solid
 # triangle whose color is the average of all three points.
 
+ avg_color = np.sum(colors[:, :], axis=0) / 3.0
+ # Just skip fully-transparent triangles
+ if avg_color[-1] == 0.0:
+ return
+
 trans_and_flip = self._make_flip_transform(trans)
 tpoints = trans_and_flip.transform(points)
 write = self._svgwriter.write
@@ -334,7 +339,7 @@
 x1, y1 = points[i]
 x2, y2 = points[(i + 1) % 3]
 x3, y3 = points[(i + 2) % 3]
- c = colors[i][:3]
+ c = colors[i][:]
 
 if x2 == x3:
 xb = x2
@@ -352,8 +357,8 @@
 
 write('<linearGradient id="GR%x_%d" x1="%f" y1="%f" x2="%f" y2="%f" gradientUnits="userSpaceOnUse">' %
 (self._n_gradients, i, x1, y1, xb, yb))
- write('<stop offset="0" stop-color="%s" stop-opacity="1.0"/>' % rgb2hex(c))
- write('<stop offset="1" stop-color="%s" stop-opacity="0.0"/>' % rgb2hex(c))
+ write('<stop offset="0" style="stop-color:%s;stop-opacity:%f"/>' % (rgb2hex(c), c[-1]))
+ write('<stop offset="1" style="stop-color:%s;stop-opacity:0"/>' % rgb2hex(c))
 write('</linearGradient>')
 
 # Define the triangle itself as a "def" since we use it 4 times
@@ -361,11 +366,11 @@
 (self._n_gradients, x1, y1, x2, y2, x3, y3))
 write('</defs>\n')
 
- avg_color = np.sum(colors[:, :3], axis=0) / 3.0
- write('<use xlink:href="#GT%x" fill="%s"/>\n' %
- (self._n_gradients, rgb2hex(avg_color)))
+ avg_color = np.sum(colors[:, :], axis=0) / 3.0
+ write('<use xlink:href="#GT%x" fill="%s" fill-opacity="%f"/>\n' %
+ (self._n_gradients, rgb2hex(avg_color), avg_color[-1]))
 for i in range(3):
- write('<use xlink:href="#GT%x" fill="url(#GR%x_%d)" filter="url(#colorAdd)"/>\n' %
+ write('<use xlink:href="#GT%x" fill="url(#GR%x_%d)" fill-opacity="1" filter="url(#colorAdd)"/>\n' %
 (self._n_gradients, self._n_gradients, i))
 
 self._n_gradients += 1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Showing 3 results of 3

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