mirror of
https://github.com/ParticulateFlow/LPP.git
synced 2025-12-08 06:37:46 +00:00
Committer: ckloss <ckloss@fluid38.(none)>
On branch master Initial commit for lpp, version 2011-10-11
This commit is contained in:
29
examples/test_svg.py
Normal file
29
examples/test_svg.py
Normal file
@ -0,0 +1,29 @@
|
||||
# simple test of svg tool
|
||||
# requires files/dump.kinase
|
||||
# creates tmp*.png
|
||||
|
||||
d = dump("files/dump.kinase")
|
||||
s = svg(d)
|
||||
|
||||
s.bg("white")
|
||||
s.rotate(60,130)
|
||||
s.box(1)
|
||||
s.file = "tmp"
|
||||
|
||||
print "kill image window when ready to contine ..."
|
||||
s.show(0)
|
||||
s.all()
|
||||
|
||||
from vizinfo import colors
|
||||
|
||||
s.acol([1,4,6,8,9],["gray","red","blue","green","yellow"])
|
||||
s.arad(range(9),0.3)
|
||||
s.label(0.2,0.4,'h',15,"red","test label #1")
|
||||
s.label(-0.2,-0.4,'h',15,"yellow","test label #2")
|
||||
|
||||
print "kill image window when ready to contine ..."
|
||||
s.show(0)
|
||||
s.pan(60,130,1,60,30,0.5)
|
||||
s.all(0,10,0)
|
||||
|
||||
print "all done ... type CTRL-D to exit Pizza.py"
|
||||
Reference in New Issue
Block a user