47 lines
1.1 KiB
Python
47 lines
1.1 KiB
Python
#test KR84, 19.10.2016
|
|
|
|
[py]=plot([None,],["y","y2"], title="OUT")
|
|
|
|
#Y error plot
|
|
py.setStyle(py.Style.ErrorY)
|
|
py.setLegendVisible(True)
|
|
|
|
sy1 = LinePlotErrorSeries("F1")
|
|
py.addSeries(sy1)
|
|
sy1.setLinesVisible(False)
|
|
sy1.appendData(1.0, 10.0, 9.0, 11.0)
|
|
sy1.appendData(10.0, 6.1, 4.34, 7.54)
|
|
sy1.appendData(17.8, 4.5, 3.1, 5.8)
|
|
|
|
|
|
|
|
m=py.addMarker(2.0, py.AxisId.X, "Text1",py.background)
|
|
m.setLabelPaint(Color.BLACK)
|
|
m=py.addMarker(10.0, py.AxisId.X, "Text2",py.background)
|
|
m.setLabelPaint(Color.BLACK)
|
|
m=py.addMarker(17.8, py.AxisId.X, "Text3",py.background)
|
|
m.setLabelPaint(Color.BLACK)
|
|
|
|
|
|
|
|
|
|
#Y error plot
|
|
py2.setStyle(py.Style.ErrorY)
|
|
py2.setLegendVisible(True)
|
|
|
|
sy1 = LinePlotErrorSeries("F2")
|
|
py2.addSeries(sy1)
|
|
sy1.setLinesVisible(False)
|
|
sy1.appendData(1.0, 10.0, 9.0, 11.0)
|
|
sy1.appendData(10.0, 6.1, 4.34, 7.54)
|
|
sy1.appendData(17.8, 4.5, 3.1, 5.8)
|
|
|
|
|
|
|
|
m=py2.addMarker(2.0, py.AxisId.X, "Text1",py2.background)
|
|
m.setLabelPaint(Color.BLACK)
|
|
m=py2.addMarker(10.0, py.AxisId.X, "Text2",py2.background)
|
|
m.setLabelPaint(Color.BLACK)
|
|
m=py2.addMarker(17.8, py.AxisId.X, "Text3",py2.background)
|
|
m.setLabelPaint(Color.BLACK)
|