We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 440af79 commit f34ccb9Copy full SHA for f34ccb9
lib/matplotlib/testing/decorators.py
@@ -111,7 +111,7 @@ def _checked_on_freetype_version(required_freetype_version):
111
def remove_ticks_and_titles(figure):
112
figure.suptitle("")
113
null_formatter = ticker.NullFormatter()
114
- for ax in figure.get_axes():
+ def remove_ticks(ax):
115
ax.set_title("")
116
ax.xaxis.set_major_formatter(null_formatter)
117
ax.xaxis.set_minor_formatter(null_formatter)
@@ -122,6 +122,10 @@ def remove_ticks_and_titles(figure):
122
ax.zaxis.set_minor_formatter(null_formatter)
123
except AttributeError:
124
pass
125
+ for child in ax.child_axes:
126
+ remove_ticks(child)
127
+ for ax in figure.get_axes():
128
+ remove_ticks(ax)
129
130
131
def _raise_on_image_difference(expected, actual, tol):
0 commit comments