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
back to PlotView
Attachments
- plotview_print_example.jpg (22.0 kB) - added by johan on 07/31/06 12:44:38.
- plotview_printpreview_example.jpg (28.9 kB) - added by johan on 07/31/06 12:45:11.
- plotview_print2what_example.jpg (26.8 kB) - added by johan on 07/31/06 12:46:02.



