Plot OpenMC geometry, interactive or static 2D slice plots.
Project description
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 as part of the openmc_plot
suite of plotting apps
Local install
You will need to first install openmc. There are several methods but perhaps the quickest is to use Conda.
conda install -c conda-forge openmc
Then you can install openmc_geometry_plot
with pip
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 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for openmc_geometry_plot-0.3.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b969bd118b0070f29c19a97f92f9ae00de22d876496f366a8d6ad3e908b6afbe |
|
MD5 | d6880a0066ec4127db13e9d3884e3927 |
|
BLAKE2b-256 | a19bfb8959c08455b5cc26d62e553b0001a77e6fe50736fa9a0f66fe9a7c89c3 |
Hashes for openmc_geometry_plot-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e913c77a4ff9e3e7defee16a489190b8f5b1b408bbafd6351f3af632d1f5be2 |
|
MD5 | 84d132bae0a7155be08d5f3fee59af45 |
|
BLAKE2b-256 | fced93ad2499bdac4b890d234b1287318dfff2398fe126c46b909142d609e425 |