MCPcopy Create free account
hub / github.com/PythonOT/POT / _set_ticks_and_spines

Function _set_ticks_and_spines

ot/plot.py:87–95  ·  view source on GitHub ↗
(ax, empty_ticks=True, visible_spines=False)

Source from the content-addressed store, hash-verified

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

Callers 1

plot1D_matFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected