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

Skip to content

Commit b1a3514

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

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/matplotlib/axis.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ def update_position(self, loc):
308308
x = loc
309309

310310

311-
self.tick1line.set_xdata((x, x))
312-
self.tick2line.set_xdata((x, x))
313-
self.gridline.set_xdata((x, x))
311+
self.tick1line.set_xdata((x,))
312+
self.tick2line.set_xdata((x,))
313+
self.gridline.set_xdata((x, ))
314314
self.label1.set_x(x)
315315
self.label2.set_x(x)
316316
self._loc = loc
@@ -432,9 +432,9 @@ def _get_gridline(self, loc):
432432
def update_position(self, loc):
433433
'Set the location of tick in data coords with scalar loc'
434434
y = loc
435-
self.tick1line.set_ydata((y, y))
436-
self.tick2line.set_ydata((y, y))
437-
self.gridline.set_ydata((y, y))
435+
self.tick1line.set_ydata((y,))
436+
self.tick2line.set_ydata((y,))
437+
self.gridline.set_ydata((y, ))
438438

439439
self.label1.set_y( y )
440440
self.label2.set_y( y )

0 commit comments

Comments
 (0)