Revision: 6512
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6512&view=rev
Author:   mdboom
Date:     2008-12-08 16:10:50 +0000 (Mon, 08 Dec 2008)

Log Message:
-----------
Fix tick alignment in colorbars.

Modified Paths:
--------------
    trunk/matplotlib/src/_backend_agg.cpp

Modified: trunk/matplotlib/src/_backend_agg.cpp
===================================================================
--- trunk/matplotlib/src/_backend_agg.cpp       2008-12-08 15:30:56 UTC (rev 
6511)
+++ trunk/matplotlib/src/_backend_agg.cpp       2008-12-08 16:10:50 UTC (rev 
6512)
@@ -555,6 +555,8 @@
 
     if (has_clippath) {
       while (path_transformed.vertex(&x, &y) != agg::path_cmd_stop) {
+        x = mpl_round(x); y = mpl_round(y);
+
        pixfmt_amask_type pfa(pixFmt, alphaMask);
        amask_ren_type r(pfa);
        amask_aa_renderer_type ren(r);
@@ -570,6 +572,8 @@
       }
     } else {
       while (path_transformed.vertex(&x, &y) != agg::path_cmd_stop) {
+        x = mpl_round(x); y = mpl_round(y);
+
        if (face.first) {
          rendererAA.color(face.second);
          sa.init(fillCache, fillSize, x, y);
@@ -1179,7 +1183,7 @@
   PathListGenerator path_generator(paths);
 
   try {
-    _draw_path_collection_generic<PathListGenerator, 1, 1>
+    _draw_path_collection_generic<PathListGenerator, 0, 1>
       (master_transform,
        cliprect,
        clippath,


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to