Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0e900cf

Browse filesBrowse files
authored
Merge pull request #17174 from anntzer/unconfig_axes
MNT: Inline RGBAxes._config_axes to its only call site.
2 parents 0652132 + 083f580 commit 0e900cf
Copy full SHA for 0e900cf

File tree

Expand file treeCollapse file tree

1 file changed

+3
-13
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-13
lines changed

‎lib/mpl_toolkits/axes_grid1/axes_rgb.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/axes_grid1/axes_rgb.py
+3-13Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -115,20 +115,10 @@ def __init__(self, *args, pad=0, add_all=True, **kwargs):
115115
kwargs["add_all"] = add_all # only show deprecation in that case
116116
self.R, self.G, self.B = make_rgb_axes(
117117
ax, pad=pad, axes_class=axes_class, **kwargs)
118-
self._config_axes()
119-
120-
def _config_axes(self, line_color='w', marker_edge_color='w'):
121-
"""
122-
Set the line color and ticks for the axes.
123-
124-
Parameters
125-
----------
126-
line_color : color
127-
marker_edge_color : color
128-
"""
118+
# Set the line color and ticks for the axes.
129119
for ax1 in [self.RGB, self.R, self.G, self.B]:
130-
ax1.axis[:].line.set_color(line_color)
131-
ax1.axis[:].major_ticks.set_markeredgecolor(marker_edge_color)
120+
ax1.axis[:].line.set_color("w")
121+
ax1.axis[:].major_ticks.set_markeredgecolor("w")
132122

133123
@cbook.deprecated("3.3")
134124
def add_RGB_to_figure(self):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.