File: py_example1.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 (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)