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

Skip to content

Commit 9909572

Browse files
committed
fixed a ps collection but
svn path=/trunk/matplotlib/; revision=1709
1 parent be948ae commit 9909572

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

lib/matplotlib/backend_bases.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def draw_line_collection(self, segments, transform, clipbox,
115115

116116
gc = self.new_gc()
117117
if clipbox is not None:
118-
gc.set_clip_rectangle(clipbox)
118+
gc.set_clip_rectangle(clipbox.get_bounds())
119119
gc.set_dashes(*linestyle)
120120

121121
Nc = len(colors)
@@ -194,7 +194,8 @@ def draw_poly_collection(
194194
N = max(Noffsets, Nverts)
195195

196196
gc = self.new_gc()
197-
if clipbox is not None: gc.set_clip_rectangle(clipbox.get_bounds())
197+
if clipbox is not None:
198+
gc.set_clip_rectangle(clipbox.get_bounds())
198199

199200
for i in xrange(N):
200201

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@ def _draw_ps(self, ps, gc, rgbFace, command=None):
764764
cint = {'butt':0, 'round':1, 'projecting':2}[gc.get_capstyle()]
765765
self.set_linecap(cint)
766766
self.set_linedash(*gc.get_dashes())
767+
767768
if cliprect:
768769
x,y,w,h=cliprect
769770
write('gsave\n%1.3f %1.3f %1.3f %1.3f clipbox\n' % (w,h,x,y))

lib/matplotlib/backends/backend_wx.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,8 +1323,9 @@ def __init__(self, canvas, num, frame):
13231323
FigureManagerBase.__init__(self, canvas, num)
13241324
self.frame = frame
13251325
self.window = frame
1326-
self.tb = frame.GetToolBar()
13271326

1327+
self.tb = frame.GetToolBar()
1328+
self.toolbar = self.tb # consistent with other backends
13281329
def notify_axes_change(fig):
13291330
'this will be called whenever the current axes is changed'
13301331
if self.tb != None: self.tb.update()

0 commit comments

Comments
 (0)