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
- plotview_infowindow_example1.jpg (2.2 kB) - added by johan on 07/28/06 15:29:57.
- plotview_infowindow_example.jpg (5.4 kB) - added by johan on 07/28/06 15:30:15.
- plotview_infowindow_example2.jpg (2.4 kB) - added by johan on 07/28/06 15:30:21.
- plotview_infowindow_example3.jpg (4.2 kB) - added by johan on 07/28/06 15:30:27.




