1 | initial version |
There are a few ways to conceal the plot axis while still displaying the labels, depending on the software or tool being used. Here are some examples:
axis off % to turn off the axis lines and ticks
xlabel('X Label') % to display the X label
ylabel('Y Label') % to display the Y label
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.spines['right'].set_visible(False) # hide the right axis
ax.spines['top'].set_visible(False) # hide the top axis
ax.set_xlabel('X Label') # display the X label
ax.set_ylabel('Y Label') # display the Y label