File: compare_plplot.py

package info (click to toggle)
wxmplot 0.9.58-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 25,052 kB
  • sloc: python: 10,085; makefile: 88; sh: 2
file content (19 lines) | stat: -rw-r--r-- 492 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/python
#
# compare to plplot example at
#  http://plplot.sourceforge.net/examples.php?demo=00&lbind=Python
##
## def main(w):
##    w.plenv( 0, 100, 0, 1, 0, 0)
##    w.pllab( "x", "y=100 x#u2#d", "Simple PLplot demo of a line plot" )
##    w.plline( x, y )


import numpy as np

x = np.linspace(0, 1, 101)
y = 100*x**2

import wxmplot.interactive as wi
wi.plot(x, y, color='red', xlabel='x', ylabel=r'$y=100 x^2$',
        title="Simple PLplot demo of a line plot", theme='dark')