File: py_example2.py

package info (click to toggle)
scigraphica 0.8.0-9
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,564 kB
  • ctags: 3,990
  • sloc: ansic: 43,040; sh: 7,278; python: 6,181; makefile: 591
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')")