Files
dev/script/test/test41.py
2018-04-17 12:05:48 +02:00

18 lines
296 B
Python
Executable File

p = plot([1,2,3,4,5], title="x")[0]
text = p.addText(1.5, 3.6, "Test")
#Changing color
text.paint = Color.GREEN
#Changing font
import java.awt.Font as Font
text.font = Font("Verdana", Font.PLAIN, 12)
#Rotation
import math
text.rotationAngle = math.radians(90.0)
#Removing
p.removeText(text)