From 083f580d55f3abab47320309b29f370a8f925870 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Fri, 17 Apr 2020 18:50:56 +0200 Subject: [PATCH] Inline RGBAxes._config_axes to its only call site. This is not called from anywhere else, and inlining avoids confusion with other unrelated methods called _config_axes in other classes. --- lib/mpl_toolkits/axes_grid1/axes_rgb.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/lib/mpl_toolkits/axes_grid1/axes_rgb.py b/lib/mpl_toolkits/axes_grid1/axes_rgb.py index 9d0166675b7d..908df2cf2ab1 100644 --- a/lib/mpl_toolkits/axes_grid1/axes_rgb.py +++ b/lib/mpl_toolkits/axes_grid1/axes_rgb.py @@ -115,20 +115,10 @@ def __init__(self, *args, pad=0, add_all=True, **kwargs): kwargs["add_all"] = add_all # only show deprecation in that case self.R, self.G, self.B = make_rgb_axes( ax, pad=pad, axes_class=axes_class, **kwargs) - self._config_axes() - - def _config_axes(self, line_color='w', marker_edge_color='w'): - """ - Set the line color and ticks for the axes. - - Parameters - ---------- - line_color : color - marker_edge_color : color - """ + # Set the line color and ticks for the axes. for ax1 in [self.RGB, self.R, self.G, self.B]: - ax1.axis[:].line.set_color(line_color) - ax1.axis[:].major_ticks.set_markeredgecolor(marker_edge_color) + ax1.axis[:].line.set_color("w") + ax1.axis[:].major_ticks.set_markeredgecolor("w") @cbook.deprecated("3.3") def add_RGB_to_figure(self):