# Revision history [back]

This seems to be a feature from matplotlib. You can try your best, turning off everything in matplotlib like this:

import matplotlib.pyplot as plt
plt.plot(range(10), range(10))
plt.axis('off')
plt.savefig('/tmp/a.png', bbox_inches='tight')


The outcome of the plot will be the same as the following code in Sage:

list_plot(range(10), plotjoined=True, axes=False)


So there is not much that can be done on Sage side. Eventually, the generation of the figure and the saving is handled by matplotlib.

This seems to be a feature from matplotlib. You can try your best, turning off everything in matplotlib like this:

import matplotlib.pyplot as plt
plt.plot(range(10), range(10))
plt.axis('off')
plt.savefig('/tmp/a.png', bbox_inches='tight')


The outcome of the plot will be the same as the following code in Sage:

list_plot(range(10), plotjoined=True, axes=False)


So there is not much that can be done on Sage side. Eventually, the generation of the figure and the saving is handled by matplotlib.

Update:

There is a way to do it in matplotlib.

sage: import matplotlib.pyplot as plt
sage: plt.plot(range(10), range(10), '-o')