Metadata-Version: 2.1
Name: openmc_geometry_plot
Version: 0.3.3
Summary: Plot OpenMC geometry, interactive or static 2D slice plots.
Author-email: Jonathan Shimwell <mail@jshimwell.com>
Project-URL: Homepage, https://github.com/fusion-energy/openmc_geometry_plot
Project-URL: Bug Tracker, https://github.com/fusion-energy/openmc_geometry_plot/issues
Keywords: openmc,geometry,plot,slice
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: tests

Create axis slice plots of OpenMC geomtry:
  - Interactive plots with hovertext :speech_balloon:
  - Specify the zoom :mag:
  - Color by materials or cells :art:
  - Outline by materials or cells :pencil2:
  - Switch plotting backends between 📉 MatPlotLib and 📈 Plotly

This package is deployed on [xsplot.com](https://www.xsplot.com) as part of the ```openmc_plot``` suite of plotting apps

![openmc geometry plot](https://user-images.githubusercontent.com/8583900/213252783-526fa814-2abd-4aac-bd1d-9cf0024a7039.png)

# Local install

You will need to first install openmc. There are several methods but perhaps the quickest is to use Conda.

```bash
conda install -c conda-forge openmc
```

Then you can install ```openmc_geometry_plot``` with pip

```bash
pip install openmc_geometry_plot
```


# Usage

The package can be used from within your own python script to make plots or via a GUI that is also bundled into the package install.

## Python API script usage

See the [examples folder](https://github.com/fusion-energy/openmc_geometry_plot/tree/master/examples) for example scripts

## Graphical User Interface (GUI) usage

After installing run the ```openmc_geometry_plot``` command from the terminal and the GUI should launch in a new browser window.
