(ax, visible_spines)
| 10 | |
| 11 | |
| 12 | def adjust_spines(ax, visible_spines): |
| 13 | ax.label_outer(remove_inner_ticks=True) |
| 14 | ax.grid(color='0.9') |
| 15 | |
| 16 | for loc, spine in ax.spines.items(): |
| 17 | if loc in visible_spines: |
| 18 | spine.set_position(('outward', 10)) # outward by 10 points |
| 19 | else: |
| 20 | spine.set_visible(False) |
| 21 | |
| 22 | |
| 23 | x = np.linspace(0, 2 * np.pi, 100) |
no test coverage detected
searching dependent graphs…