Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Create a plot with option transparent=True and save to DATA folder.

G = circle((2,2),3,transparent=True)
G.save(DATA+'circle.png')

Now you may create a backround file using imagemagick command-line tool and compose both files.

%sh
convert -size 600x600 xc:#ffffaa ./data/bg.png
convert ./data/bg.png  ./data/circle.png   -composite  output.png