Revision: 7734
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7734&view=rev
Author: leejjoon
Date: 2009-09-10 23:01:28 +0000 (Thu, 10 Sep 2009)
Log Message:
-----------
fix a bug in Line2D.draw method that produces invalid svg when the line is
invisible
Modified Paths:
--------------
branches/v0_99_maint/lib/matplotlib/lines.py
Modified: branches/v0_99_maint/lib/matplotlib/lines.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/lines.py 2009-09-10 22:32:08 UTC
(rev 7733)
+++ branches/v0_99_maint/lib/matplotlib/lines.py 2009-09-10 23:01:28 UTC
(rev 7734)
@@ -505,9 +505,10 @@
self._transform_path(subslice)
if self._transformed_path is None:
self._transform_path()
+
+ if not self.get_visible(): return
+
renderer.open_group('line2d', self.get_gid())
-
- 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.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins