@@ -505,14 +505,6 @@ def set_linewidth(self, lw):
505505 self ._us_lw , self ._us_linestyles )
506506 self .stale = True
507507
508- def set_linewidths (self , lw ):
509- """alias for set_linewidth"""
510- return self .set_linewidth (lw )
511-
512- def set_lw (self , lw ):
513- """alias for set_linewidth"""
514- return self .set_linewidth (lw )
515-
516508 def set_linestyle (self , ls ):
517509 """
518510 Set the linestyle(s) for the collection.
@@ -640,14 +632,6 @@ def _bcast_lwls(linewidths, dashes):
640632
641633 return linewidths , dashes
642634
643- def set_linestyles (self , ls ):
644- """alias for set_linestyle"""
645- return self .set_linestyle (ls )
646-
647- def set_dashes (self , ls ):
648- """alias for set_linestyle"""
649- return self .set_linestyle (ls )
650-
651635 def set_antialiased (self , aa ):
652636 """
653637 Set the antialiasing state for rendering.
@@ -659,10 +643,6 @@ def set_antialiased(self, aa):
659643 self ._antialiaseds = np .atleast_1d (np .asarray (aa , bool ))
660644 self .stale = True
661645
662- def set_antialiaseds (self , aa ):
663- """alias for set_antialiased"""
664- return self .set_antialiased (aa )
665-
666646 def set_color (self , c ):
667647 """
668648 Set both the edgecolor and the facecolor.
@@ -704,21 +684,15 @@ def set_facecolor(self, c):
704684 self ._original_facecolor = c
705685 self ._set_facecolor (c )
706686
707- def set_facecolors (self , c ):
708- """alias for set_facecolor"""
709- return self .set_facecolor (c )
710-
711687 def get_facecolor (self ):
712688 return self ._facecolors
713- get_facecolors = get_facecolor
714689
715690 def get_edgecolor (self ):
716691 if (isinstance (self ._edgecolors , six .string_types )
717692 and self ._edgecolors == str ('face' )):
718693 return self .get_facecolors ()
719694 else :
720695 return self ._edgecolors
721- get_edgecolors = get_edgecolor
722696
723697 def _set_edgecolor (self , c ):
724698 set_hatch_color = True
@@ -764,10 +738,6 @@ def set_edgecolor(self, c):
764738 self ._original_edgecolor = c
765739 self ._set_edgecolor (c )
766740
767- def set_edgecolors (self , c ):
768- """alias for set_edgecolor"""
769- return self .set_edgecolor (c )
770-
771741 def set_alpha (self , alpha ):
772742 """
773743 Set the alpha tranparencies of the collection. *alpha* must be
@@ -785,13 +755,11 @@ def set_alpha(self, alpha):
785755 self ._set_facecolor (self ._original_facecolor )
786756 self ._set_edgecolor (self ._original_edgecolor )
787757
788- def get_linewidths (self ):
758+ def get_linewidth (self ):
789759 return self ._linewidths
790- get_linewidth = get_linewidths
791760
792- def get_linestyles (self ):
761+ def get_linestyle (self ):
793762 return self ._linestyles
794- get_dashes = get_linestyle = get_linestyles
795763
796764 def update_scalarmappable (self ):
797765 """
@@ -836,6 +804,14 @@ def update_from(self, other):
836804 # self.update_dict = other.update_dict # do we need to copy this? -JJL
837805 self .stale = True
838806
807+ cbook ._define_aliases (locals (), {
808+ "antialiased" : ["antialiaseds" ],
809+ "edgecolor" : ["edgecolors" ],
810+ "facecolor" : ["facecolors" ],
811+ "linestyle" : ["linestyles" , "dashes" ],
812+ "linewidth" : ["linewidths" , "lw" ],
813+ })
814+
839815# these are not available for the object inspector until after the
840816# class is built so we define an initial set here for the init
841817# function and they will be overridden after object defn
0 commit comments