Ask Your Question

Revision history [back]

This is a good question! I only know of a workaround by using matplotlib

import matplotlib.pyplot as plt
from mpl_toolkits.axisartist.axislines import AxesZero

fig = plt.figure()
ax = fig.add_subplot(axes_class=AxesZero)
for direction in ["xzero", "yzero"]:
    ax.axis[direction].set_axisline_style('-|>')
    ax.axis[direction].set_visible(True)
for direction in ["left", "right", "bottom", "top"]:
    ax.axis[direction].set_visible(False)

P = plot(x**2, (x, 0, 1))
P.axes(False)
P_plt = P.matplotlib(figure=fig)
plt.show()

See https://matplotlib.org/stable/gallery/axisartist/demo_axisline_style.html and https://ask.sagemath.org/question/76260/combine-sage-plot-with-matplotlib/