PlotView: using the infowindow

The following code will result in the image above

pv = gui.CreatePlotView()

d = gui.PlotData(0,0,0)

# Example 1
d.AddXY(0.0,0.0,["This is a test"])

# Example 2
d.AddXY(1.0,1.0,["string 1","string 2"])

# Example 3
i = 2.34
test = "A number can be added to a string with: " + str(i)
d.AddXY(2.0,2.0,[test, str(i)])

pv.AddData(d)


The InfoWindow can be toggled via the "Display" menu. Hovering with the mouse over the 3 datapoints will result in these 3 different infowindows to be shown.

Example 1

Example 2

Example 3


back to PlotView

Attachments