File: py_example1.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 (10 lines) | stat: -rw-r--r-- 230 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
# Simple example. Plotting expressions:
from pysga import *

k=SGplot(0,'K-Plot')
l=k.layer(1)
l.plot_expression('x*(x-10.0)')
l.xaxis().set_range(0,10)
l.xaxis().set_ticks(1,0)
l.yaxis().set_range(-30,0)
l.yaxis().set_ticks(6,1)