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

Skip to content

Commit 531402f

Browse files
authored
Merge pull request #13972 from anntzer/set_linepatchprops
Remove _process_plot_var_args.set{line,patch}_props.
2 parents 26e4f4a + 7648f84 commit 531402f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,6 @@ def get_next_color(self):
230230
return 'k'
231231
return next(self.prop_cycler)['color']
232232

233-
def set_lineprops(self, line, **kwargs):
234-
assert self.command == 'plot', 'set_lineprops only works with "plot"'
235-
line.set(**kwargs)
236-
237-
def set_patchprops(self, fill_poly, **kwargs):
238-
assert self.command == 'fill', 'set_patchprops only works with "fill"'
239-
fill_poly.set(**kwargs)
240-
241233
def _xy_from_xy(self, x, y):
242234
if self.axes.xaxis is not None and self.axes.yaxis is not None:
243235
bx = self.axes.xaxis.update_units(x)
@@ -357,7 +349,7 @@ def _makefill(self, x, y, kw, kwargs):
357349
facecolor=facecolor,
358350
fill=kwargs.get('fill', True),
359351
closed=kw['closed'])
360-
self.set_patchprops(seg, **kwargs)
352+
seg.set(**kwargs)
361353
return seg
362354

363355
def _plot_args(self, tup, kwargs):

0 commit comments

Comments
 (0)