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

Skip to content

Commit 922636a

Browse files
committed
AGG: Forcing quadmesh to call snap. Also, don't override edgecolor choices from Python, do the logic up there.
1 parent ca1330c commit 922636a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/_backend_agg.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,13 +1160,6 @@ inline void RendererAgg::draw_quad_mesh(GCAgg &gc,
11601160
array::scalar<double, 1> linewidths(gc.linewidth);
11611161
array::scalar<uint8_t, 1> antialiaseds(antialiased);
11621162
DashesVector linestyles;
1163-
ColorArray *edgecolors_ptr = &edgecolors;
1164-
1165-
if (edgecolors.size() == 0) {
1166-
if (antialiased) {
1167-
edgecolors_ptr = &facecolors;
1168-
}
1169-
}
11701163

11711164
_draw_path_collection_generic(gc,
11721165
master_transform,
@@ -1178,12 +1171,12 @@ inline void RendererAgg::draw_quad_mesh(GCAgg &gc,
11781171
offsets,
11791172
offset_trans,
11801173
facecolors,
1181-
*edgecolors_ptr,
1174+
edgecolors,
11821175
linewidths,
11831176
linestyles,
11841177
antialiaseds,
11851178
OFFSET_POSITION_FIGURE,
1186-
false,
1179+
true, // snap
11871180
false);
11881181
}
11891182

0 commit comments

Comments
 (0)