Files
LPP/examples/test_plotview.py
danielque 539fd060c2 python 3 compatibility for examples/*.py files
add from __future__ import
print statement -> print() function
xrange -> range
map() -> list(map())
range() -> list(range())
StandardError -> Exception
2023-08-10 13:25:36 +02:00

19 lines
285 B
Python

# simple test of plotview tool
# requires files/log.obstacle
# creates tmp.plotview.eps
lg = log("files/log.obstacle")
g = gnu()
p = plotview(lg,g)
p.select(1)
p.select(6)
p.yes(2)
p.yes(5)
p.no(2)
p.file("tmp.plotview")
p.save()
print("all done ... type CTRL-D to exit Pizza.py")