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.)
The quick doc of
load
, accessed for instance via?load
contains the information:and so on. Sage expects code, not a pic! Just take a pencil...