File: example_3D.py

package info (click to toggle)
pyimagetool 1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 10,016 kB
  • sloc: python: 3,183; xml: 51; makefile: 9
file content (12 lines) | stat: -rw-r--r-- 363 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
from pyimagetool import imagetool
from pyimagetool.data import arpes_data_3d

data = arpes_data_3d()
tool = imagetool(data)
# after closing the ImageTool window, you can access data from the imagetool
# this will only run if matplotlib exists in lib
try:
    import matplotlib
    tool.get('xy').plot(cmap='viridis')
except ImportError:
    print(tool.get('xy'))