I need a figure without labels, axes, and frame - just the pure data plot.
For example:
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.set_facecolor('green')
ax.plot(range(0, 10), c='red')
creates this plot
The problems:
Option removes the ticks and labels but a small black frame remains.
ax.xaxis.set_visible(False) ax.yaxis.set_visible(False)
Option removes the background and still leaves a white margin.
ax.axis('off') fig.tight_layout(pad=0)
Option removes everything I want but also the background:
fig.patch.set_visible(False)
Other solutions like this one don't work as well.
Any ideas?