From: <md...@us...> - 2008-01-15 19:32:52
|
Revision: 4869 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4869&view=rev Author: mdboom Date: 2008-01-15 11:32:47 -0800 (Tue, 15 Jan 2008) Log Message: ----------- Fix bug with alpha colors in Ps backend. Thanks Paul Novak. Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backends/backend_ps.py Modified: trunk/matplotlib/lib/matplotlib/backends/backend_ps.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_ps.py 2008-01-14 13:21:23 UTC (rev 4868) +++ trunk/matplotlib/lib/matplotlib/backends/backend_ps.py 2008-01-15 19:32:47 UTC (rev 4869) @@ -541,7 +541,7 @@ corr = 0#w/2*(fontsize-10)/10 pos = _nums_to_str(x-corr, y) thetext = 'psmarker%d' % self.textcnt - color = '%1.3f,%1.3f,%1.3f'% gc.get_rgb() + color = '%1.3f,%1.3f,%1.3f'% gc.get_rgb()[:3] fontcmd = {'sans-serif' : r'{\sffamily %s}', 'monospace' : r'{\ttfamily %s}'}.get( rcParams['font.family'], r'{\rmfamily %s}') @@ -597,7 +597,7 @@ fontname = font.get_fontname() fontsize = prop.get_size_in_points() rotate = '%1.1f rotate' % angle - setcolor = '%1.3f %1.3f %1.3f setrgbcolor' % gc.get_rgb() + setcolor = '%1.3f %1.3f %1.3f setrgbcolor' % gc.get_rgb()[:3] #h = 0 ps = """\ gsave This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |