@@ -1079,7 +1079,7 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
1079
1079
# Uses a custom implementation of data-kwarg handling in
1080
1080
# _process_plot_var_args.
1081
1081
@docstring .dedent_interpd
1082
- def plot (self , * args , scalex = True , scaley = True , ** kwargs ):
1082
+ def plot (self , * args , scalex = True , scaley = True , data = None , ** kwargs ):
1083
1083
"""
1084
1084
Plot y versus x as lines and/or markers.
1085
1085
@@ -1304,7 +1304,7 @@ def plot(self, *args, scalex=True, scaley=True, **kwargs):
1304
1304
1305
1305
"""
1306
1306
kwargs = cbook .normalize_kwargs (kwargs , mlines .Line2D ._alias_map )
1307
- lines = [* self ._get_lines (* args , ** kwargs )]
1307
+ lines = [* self ._get_lines (* args , data = data , ** kwargs )]
1308
1308
for line in lines :
1309
1309
self .add_line (line )
1310
1310
self .autoscale_view (scalex = scalex , scaley = scaley )
@@ -1690,7 +1690,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
1690
1690
#### Specialized plotting
1691
1691
1692
1692
# @_preprocess_data() # let 'plot' do the unpacking..
1693
- def step (self , x , y , * args , where = 'pre' , ** kwargs ):
1693
+ def step (self , x , y , * args , where = 'pre' , data = None , ** kwargs ):
1694
1694
"""
1695
1695
Make a step plot.
1696
1696
@@ -1756,7 +1756,7 @@ def step(self, x, y, *args, where='pre', **kwargs):
1756
1756
"'pre', 'post' or 'mid'" )
1757
1757
kwargs ['linestyle' ] = 'steps-' + where + kwargs .get ('linestyle' , '' )
1758
1758
1759
- return self .plot (x , y , * args , ** kwargs )
1759
+ return self .plot (x , y , * args , data = data , ** kwargs )
1760
1760
1761
1761
@_preprocess_data ()
1762
1762
@docstring .dedent_interpd
@@ -4533,7 +4533,7 @@ def barbs(self, *args, **kw):
4533
4533
4534
4534
# Uses a custom implementation of data-kwarg handling in
4535
4535
# _process_plot_var_args.
4536
- def fill (self , * args , ** kwargs ):
4536
+ def fill (self , * args , data = None , ** kwargs ):
4537
4537
"""
4538
4538
Plot filled polygons.
4539
4539
@@ -4573,7 +4573,7 @@ def fill(self, *args, **kwargs):
4573
4573
kwargs = cbook .normalize_kwargs (kwargs , mlines .Line2D ._alias_map )
4574
4574
4575
4575
patches = []
4576
- for poly in self ._get_patches_for_fill (* args , ** kwargs ):
4576
+ for poly in self ._get_patches_for_fill (* args , data = data , ** kwargs ):
4577
4577
self .add_patch (poly )
4578
4578
patches .append (poly )
4579
4579
self .autoscale_view ()
0 commit comments