File: py_example2.py

package info (click to toggle)
scigraphica 0.8.0-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,804 kB
  • ctags: 3,975
  • sloc: ansic: 43,009; sh: 6,796; python: 6,167; makefile: 567
file content (12 lines) | stat: -rw-r--r-- 313 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
# Another example. Plotting columns:
from pysga import *
w=SGworksheet('W1')
w.setcol('A',range(0,10))
w.setcol('B',w.col('A')**2)
p=SGplot(0,'Columns')
l=p.layer(1)
l.set_symbol_style(1)
l.set_symbol_color("blue")
l.set_line_style(1)
l.set_line_color("red")
l.plot_expression_xy("col('A','W1')","col('B','W1')")