PlotView: showing y-axis and y-axis values

The following code will result in the image above

pv = gui.CreatePlotView()

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

d.AddXY(0.0,-1.37)
d.AddXY(0.0,5.68)
d2.AddXY(1.0,0.001)
d2.AddXY(1.0,0.01)

pv.AddData(d)
pv.AddData(d2)


The second y-axis and y-axis values can be shown via the "Display" menu. The values will be displayed with a maximum of 2 decimals. The PlotView is designed to interpret y-axis(0) as the first (gui.PlotData(0,0,'0')) y-axis and y-axis(1) as the second (gui.PlotData(0,0,'1')). If a y-axis(0) does not exist the second y-axis can not be shown nor can y-values. If a y-axis(1) does not exist the second y-axis can not be shown nor can the second y-axis values.


back to PlotView

Attachments