PlotView: print to file/printer

The following code will result in something similar to the image above

import random

pv = gui.CreatePlotView()
pv.SetErrorWeightScheme(0,10,10,50,0)

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

for i in range(50):
  a = random.randint(-500, 500)
  a += random.random()
  b = random.randint(-500, 500)
  b += random.random()
  x = random.randint(0, 9)
  x += random.random()
  y = random.randint(0, 9)
  y += random.random()
  d.AddXWYW(a, x, b, y, ["Y(0)", str(i)])

pv.AddData(d)


From the "File" menu you can choose to print the display of the plotview. The plotview can be printed to a "Generic Postscript", to a "PDF document" or to a printer".

Preview

Print


back to PlotView

Attachments