Revision: 4314
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4314&view=rev
Author: mdboom
Date: 2007-11-15 10:35:30 -0800 (Thu, 15 Nov 2007)
Log Message:
-----------
Fix colorbar drawing.
Modified Paths:
--------------
branches/transforms/lib/matplotlib/colorbar.py
branches/transforms/src/_backend_agg.cpp
Modified: branches/transforms/lib/matplotlib/colorbar.py
===================================================================
--- branches/transforms/lib/matplotlib/colorbar.py 2007-11-15 18:32:22 UTC
(rev 4313)
+++ branches/transforms/lib/matplotlib/colorbar.py 2007-11-15 18:35:30 UTC
(rev 4314)
@@ -205,6 +205,8 @@
self.outline = lines.Line2D(x, y, color=mpl.rcParams['axes.edgecolor'],
linewidth=mpl.rcParams['axes.linewidth'])
ax.add_artist(self.outline)
+ self.outline.set_clip_box(None)
+ self.outline.set_clip_path(None)
c = mpl.rcParams['axes.facecolor']
self.patch = patches.Polygon(zip(x,y), edgecolor=c,
facecolor=c,
Modified: branches/transforms/src/_backend_agg.cpp
===================================================================
--- branches/transforms/src/_backend_agg.cpp 2007-11-15 18:32:22 UTC (rev
4313)
+++ branches/transforms/src/_backend_agg.cpp 2007-11-15 18:35:30 UTC (rev
4314)
@@ -466,9 +466,6 @@
typedef agg::renderer_scanline_aa_solid<amask_ren_type>
amask_aa_renderer_type;
typedef agg::renderer_scanline_bin_solid<amask_ren_type>
amask_bin_renderer_type;
- rendererBase->reset_clipping(true);
- theRasterizer->reset_clipping();
-
args.verify_length(5, 6);
Py::Object gc_obj = args[0];
@@ -525,7 +522,9 @@
unsigned strokeSize = scanlines.byte_size();
strokeCache = new agg::int8u[strokeSize]; // or any container
scanlines.serialize(strokeCache);
-
+
+ theRasterizer->reset_clipping();
+ rendererBase->reset_clipping(true);
set_clipbox(gc.cliprect, rendererBase);
bool has_clippath = render_clippath(gc.clippath, gc.clippath_trans);
@@ -885,6 +884,8 @@
GCAgg gc = GCAgg(gc_obj, dpi);
facepair_t face = _get_rgba_face(face_obj, gc.alpha);
+ theRasterizer->reset_clipping();
+ rendererBase->reset_clipping(true);
set_clipbox(gc.cliprect, theRasterizer);
bool has_clippath = render_clippath(gc.clippath, gc.clippath_trans);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins