New ScreenPanel
This commit is contained in:
18
script/test41.py
Executable file
18
script/test41.py
Executable file
@@ -0,0 +1,18 @@
|
||||
|
||||
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)
|
||||
Reference in New Issue
Block a user