File indexing completed on 2024-12-22 04:17:10

0001 #!/usr/bin/python2.7
0002 import pykst as kst
0003 
0004 client=kst.Client("TestX2")
0005 
0006 v1 = client.new_generated_vector(-10, 10, 1000)
0007 e1 = client.new_equation(v1, "sin(x)")
0008 c1 = client.new_curve(e1.x(), e1.y())
0009 p1 = client.new_plot()
0010 p1.add(c1)
0011 
0012 client.new_tab()
0013 e1 = client.new_equation(v1, "cos(x)")
0014 c1 = client.new_curve(e1.x(), e1.y())
0015 p1 = client.new_plot()
0016 p1.add(c1)
0017 
0018 
0019 client.export_graphics_file("tmp.png", all_tabs = True, autosave_period = 5)