File: image.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 (9 lines) | stat: -rw-r--r-- 248 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/usr/bin/python
import numpy as np
import wxmplot.interactive as wi

y, x = np.mgrid[-5:5:101j, -4:6:101j]
dat = np.sin(x*x/3.0 + y*y)/(1 + (x+y)*(x+y))

wi.imshow(dat, x=x[0,:], y=y[:,0], colormap='viridis',
          wintitle='wxmplot imshow')