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

Skip to content

Commit aa37dd1

Browse files
committed
fixed duplicate tickline bug
svn path=/trunk/matplotlib/; revision=1588
1 parent 1de6c6f commit aa37dd1

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
New entries should be added at the top
22

3+
2005-08-05 Fixed duplicate tickline bug - JDH
4+
5+
2005-08-05 Fixed a GTK animation bug that cropped up when doing
6+
animations in gtk//gtkagg canvases that had widgets packed
7+
above them
8+
39
2005-08-05 Added Clovis Goldemberg patch to the tk save dialog
410

511
2005-08-04 Removed origin kwarg from backend.draw_image. origin is

lib/matplotlib/axis.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _get_text2(self, loc):
258258
def _get_tick1line(self, loc):
259259
'Get the default line2D instance'
260260
# x in data coords, y in axes coords
261-
l = Line2D( xdata=(loc, loc), ydata=(0, 0),
261+
l = Line2D( xdata=(loc,), ydata=(0,),
262262
color='k',
263263
linestyle = 'None',
264264
antialiased=False,
@@ -274,7 +274,7 @@ def _get_tick1line(self, loc):
274274
def _get_tick2line(self, loc):
275275
'Get the default line2D instance'
276276
# x in data coords, y in axes coords
277-
l = Line2D( xdata=(loc, loc), ydata=(1,1),
277+
l = Line2D( xdata=(loc,), ydata=(1,),
278278
color='k',
279279
linestyle = 'None',
280280
antialiased=False,
@@ -385,7 +385,7 @@ def _get_tick1line(self, loc):
385385
'Get the default line2D instance'
386386
# x in axes coords, y in data coords
387387

388-
l = Line2D( (0, 0), (loc, loc), color='k',
388+
l = Line2D( (0,), (loc,), color='k',
389389
antialiased=False,
390390
marker = TICKRIGHT,
391391
linestyle = 'None',
@@ -399,7 +399,7 @@ def _get_tick1line(self, loc):
399399
def _get_tick2line(self, loc):
400400
'Get the default line2D instance'
401401
# x in axes coords, y in data coords
402-
l = Line2D( (1, 1), (0, 0), color='k',
402+
l = Line2D( (1,), (0,), color='k',
403403
antialiased=False,
404404
marker = TICKLEFT,
405405
linestyle = 'None',

lib/matplotlib/backends/backend_gtkagg.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,10 @@ def _render_figure(self, pixmap, width, height):
7171
agg_to_gtk_drawable(pixmap, self.renderer._renderer, None)
7272

7373
def blit(self, bbox=None):
74-
7574
agg_to_gtk_drawable(self._pixmap, self.renderer._renderer, bbox)
7675
x, y, w, h = self.allocation
7776
self.window.draw_drawable (self.style.fg_gc[self.state], self._pixmap,
78-
x, y, x, y, w, h)
77+
0, 0, 0, 0, w, h)
7978

8079
def print_figure(self, filename, dpi=150,
8180
facecolor='w', edgecolor='w',

0 commit comments

Comments
 (0)