Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b19dc3

Browse files
committed
Merged revisions 6589,6608-6609 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_98_5_maint ........ r6589 | mmetz_bn | 2008-12-12 08:58:24 -0500 (Fri, 12 Dec 2008) | 1 line fix warning in hist for numpy 1.2 ........ r6608 | mdboom | 2008-12-15 09:16:27 -0500 (Mon, 15 Dec 2008) | 2 lines Fix gridlines not moving correctly during pan and zoom ........ r6609 | mdboom | 2008-12-15 09:18:03 -0500 (Mon, 15 Dec 2008) | 2 lines Turn off anti-aliasing when auto-snapping. ........ svn path=/trunk/matplotlib/; revision=6610
1 parent 0af7578 commit 5b19dc3

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2008-12-15 Fix anti-aliasing when auto-snapping - MGD
2+
3+
2008-12-15 Fix grid lines not moving correctly during pan and zoom - MGD
4+
15
2008-12-12 Preparations to eliminate maskedarray rcParams key: its
26
use will now generate a warning. Similarly, importing
37
the obsolote numerix.npyma will generate a warning. - EF

lib/matplotlib/transforms.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ def invalidate(self):
120120
root = stack.pop()
121121
# Stop at subtrees that have already been invalidated
122122
if root._invalid != value or root.pass_through:
123-
value |= root._invalid
124-
root._invalid = value
123+
root._invalid = self.INVALID
125124
stack.extend(root._parents.keys())
126125

127126
def set_children(self, *children):

src/_backend_agg.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ RendererAgg::_get_rgba_face(const Py::Object& rgbFace, double alpha) {
355355
}
356356

357357
template<class Path>
358-
bool should_snap(const GCAgg& gc, Path& path, const agg::trans_affine& trans) {
358+
bool should_snap(GCAgg& gc, Path& path, const agg::trans_affine& trans) {
359359
// If this contains only straight horizontal or vertical lines, it should be
360360
// quantized to the nearest pixels
361361
double x0, y0, x1, y1;
@@ -393,6 +393,7 @@ bool should_snap(const GCAgg& gc, Path& path, const agg::trans_affine& trans) {
393393
}
394394

395395
path.rewind(0);
396+
gc.isaa = false;
396397
return true;
397398
case GCAgg::SNAP_FALSE:
398399
return false;

0 commit comments

Comments
 (0)