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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cec0b305faa7a577a109c8d1f26b56deba512df560adae57475f1ba9dd3b7262 |
|
MD5 | f3f1d7af60f61b0ecf7564b54b84d840 |
|
BLAKE2b-256 | 81ab5cccda81388d43d9a0278def03578ddf729c336a1ea727efdf81607352e1 |
Hashes for openmc_geometry_plot-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88ba38aed8d3718a23bea37ad5d7af1bb14e59a45742d5f800404b9cad857ba9 |
|
MD5 | 590e020f2d6d4296530a4a712151cafd |
|
BLAKE2b-256 | 2cc004da393d9c2dcf1bb8b6f6f9c0932a3dc2c78c9f315329e9246a1321bcd1 |