Save Matplotlib image for s3 without saving locally using Boto

Is it possible to save the graph to s3 without first saving the file locally?

from boto.s3.connection import S3Connection
from boto.s3.key import Key

k = Key(bucket)
k.key = "mykey"

plt.savefig(k.key) //??

      

+3


source to share





All Articles