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

Skip to content

Commit ce0c5b3

Browse files
committed
Fix wx backend clipping bug.
svn path=/trunk/matplotlib/; revision=5587
1 parent 5d49cfc commit ce0c5b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/backends/backend_wx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,13 @@ def handle_clip_rectangle(self, gc):
283283
if new_bounds is not None:
284284
new_bounds = new_bounds.bounds
285285
gfx_ctx = gc.gfx_ctx
286-
if True or gfx_ctx._lastcliprect != new_bounds:
286+
if gfx_ctx._lastcliprect != new_bounds:
287287
gfx_ctx._lastcliprect = new_bounds
288288
if new_bounds is None:
289289
gfx_ctx.ResetClip()
290290
else:
291291
gfx_ctx.Clip(new_bounds[0], self.height - new_bounds[1] - new_bounds[3],
292-
new_bounds[1], new_bounds[3])
292+
new_bounds[2], new_bounds[3])
293293

294294
#@staticmethod
295295
def convert_path(gfx_ctx, tpath):

0 commit comments

Comments
 (0)