Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can I import a graphic and add to it?

One of my collaborators has made an image of some regions, and now my job is to superimpose a plot on it. So I would like to do something like the following:

pic = load('pic.png')
pts = list_plot(points) 
fig = pic + pts
fig.show()

However, I get the error:

IOError: [Errno 2] No such file or directory:
'pic.png.sobj'

Is there a way to get around this, or perhaps convert my png to a sobj? (The path to the file is correct.)