Remove ticks in *ax* and all its child Axes.
(ax)
| 58 | figure.suptitle("") |
| 59 | null_formatter = ticker.NullFormatter() |
| 60 | def remove_ticks(ax): |
| 61 | """Remove ticks in *ax* and all its child Axes.""" |
| 62 | ax.set_title("") |
| 63 | ax.xaxis.set_major_formatter(null_formatter) |
| 64 | ax.xaxis.set_minor_formatter(null_formatter) |
| 65 | ax.yaxis.set_major_formatter(null_formatter) |
| 66 | ax.yaxis.set_minor_formatter(null_formatter) |
| 67 | try: |
| 68 | ax.zaxis.set_major_formatter(null_formatter) |
| 69 | ax.zaxis.set_minor_formatter(null_formatter) |
| 70 | except AttributeError: |
| 71 | pass |
| 72 | for child in ax.child_axes: |
| 73 | remove_ticks(child) |
| 74 | for ax in figure.get_axes(): |
| 75 | remove_ticks(ax) |
| 76 |
no test coverage detected
searching dependent graphs…