Metadata-Version: 2.1
Name: visens
Version: 0.0.2
Summary: VISualization for Ess Neutron Science
Home-page: https://github.com/nvaytet/visens
Author: Neil Vaytet
Author-email: neil.vaytet@esss.se
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: matplotlib
Requires-Dist: numpy
Requires-Dist: h5py
Requires-Dist: ipyvolume

# VISENS

**VIS**ualization for **E**SS **N**eutron **S**cience

### Installation:

```
pip install visens
```

### Usage:

```Python
import visens as vs

# Diffraction experiment
file1 = "V20_ESSIntegration_2018-12-13_0942_stripped.nxs"
# Reflectometry experiment
file2 = "nicos_00000447_agg_with_monitor.nxs"
```

```Python
# Plot a 2D image of the integrated detector counts
vs.image(file2)
```
![image.png](https://github.com/nvaytet/v20dataviz/raw/master/docs/images/image.png)
```Python
# Plot a x versus time-of-flight diagram
vs.x_vs_tof(file1)
```
![x_vs_tof.png](https://github.com/nvaytet/v20dataviz/raw/master/docs/images/x_vs_tof.png)
```Python
# Open a slicer plot that allows to navigate the tof dimension with mouse wheel
vs.slicer(file2)
```
![slicer.png](https://github.com/nvaytet/v20dataviz/raw/master/docs/images/slicer.png)
```Python
# 3D volume rendering (x, y, tof)
# (only available in jupyter notebook, requires ipyvolume)
vs.volume(file1)
```
![volume.png](https://github.com/nvaytet/v20dataviz/raw/master/docs/images/volume.png)


