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

Skip to content

Commit 1ee2dba

Browse files
author
Steve Chaplin
committed
SC 2005/03/10
svn path=/trunk/matplotlib/; revision=1062
1 parent 59df307 commit 1ee2dba

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

CHANGELOG

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

3+
2005-03-10 remove GraphicsContextPS.set_linestyle()
4+
and GraphicsContextSVG.set_linestyle() since they do no more than
5+
the base class GraphicsContext.set_linestyle() - SC
6+
37
2005-03-09 Refactored contour functionality into dedicated module
48

59
2005-03-09 Added Eric's contourf updates and Nadia's clabel functionality

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -524,15 +524,8 @@ def _draw_ps(self, ps, gc, rgbFace, command=None):
524524

525525

526526
class GraphicsContextPS(GraphicsContextBase):
527+
pass
527528

528-
def set_linestyle(self, style):
529-
"""
530-
Set the linestyle to be one of ('solid', 'dashed', 'dashdot',
531-
'dotted').
532-
"""
533-
GraphicsContextBase.set_linestyle(self, style)
534-
offset, dashes = self.dashd[style]
535-
self.set_dashes(offset, dashes)
536529

537530
def new_figure_manager(num, *args, **kwargs):
538531
thisFig = Figure(*args, **kwargs)

lib/matplotlib/backends/backend_svg.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,6 @@ def new_gc(self):
280280
return GraphicsContextSVG()
281281

282282
class GraphicsContextSVG(GraphicsContextBase):
283-
284-
def set_linestyle(self, style):
285-
GraphicsContextBase.set_linestyle(self, style)
286-
offset, dashes = self.dashd[style]
287-
self.set_dashes(offset, dashes)
288-
289283
def get_capstyle(self):
290284
'one of butt/round/square/none'
291285
d = {'projecting' : 'square',

0 commit comments

Comments
 (0)