(ax, empty_ticks=True, visible_spines=False)
| 85 | |
| 86 | # helper function for code factorisation |
| 87 | def _set_ticks_and_spines(ax, empty_ticks=True, visible_spines=False): |
| 88 | if empty_ticks: |
| 89 | ax.set_xticks(()) |
| 90 | ax.set_yticks(()) |
| 91 | |
| 92 | ax.spines["top"].set_visible(visible_spines) |
| 93 | ax.spines["right"].set_visible(visible_spines) |
| 94 | ax.spines["bottom"].set_visible(visible_spines) |
| 95 | ax.spines["left"].set_visible(visible_spines) |
| 96 | |
| 97 | if plot_style == "xy": |
| 98 | # horizontal source on the bottom, flipped vertically |