Entfernen Sie die Polsterung von der Matplotlib-Zeichnung

Ich zeichne ein Bild in matplotlib und es füllt mich immer wieder auf. Das habe ich versucht:

def field_plot():
    x = [i[0] for i in path]
    y = [i[1] for i in path]
    plt.clf()
    plt.axis([0, 560, 0, 820])
    im = plt.imread('field.jpg')
    field = plt.imshow(im)
    for i in range(len(r)):
        plt.plot(r[i][0],r[i][1],c=(rgb_number(speeds[i]),0,1-rgb_number(speeds[i])),linewidth=1)
    plt.axis('off')
    plt.savefig( IMG_DIR + 'match.png',bbox_inches='tight', transparent="True")
    plt.clf()

Antworten auf die Frage(3)

Ihre Antwort auf die Frage