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 f34ccb9

Browse filesBrowse files
committed
FIX/TST: recursively remove ticks
1 parent 440af79 commit f34ccb9
Copy full SHA for f34ccb9

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎lib/matplotlib/testing/decorators.py

Copy file name to clipboardExpand all lines: lib/matplotlib/testing/decorators.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _checked_on_freetype_version(required_freetype_version):
111111
def remove_ticks_and_titles(figure):
112112
figure.suptitle("")
113113
null_formatter = ticker.NullFormatter()
114-
for ax in figure.get_axes():
114+
def remove_ticks(ax):
115115
ax.set_title("")
116116
ax.xaxis.set_major_formatter(null_formatter)
117117
ax.xaxis.set_minor_formatter(null_formatter)
@@ -122,6 +122,10 @@ def remove_ticks_and_titles(figure):
122122
ax.zaxis.set_minor_formatter(null_formatter)
123123
except AttributeError:
124124
pass
125+
for child in ax.child_axes:
126+
remove_ticks(child)
127+
for ax in figure.get_axes():
128+
remove_ticks(ax)
125129

126130

127131
def _raise_on_image_difference(expected, actual, tol):

0 commit comments

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