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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 165a5466b3d8d8b84cfbd1d359295e190e6fbec8b89c4a7b7bd78781ed1faaf0 |
|
MD5 | a1dd76a80ec1a5447337e065d54af817 |
|
BLAKE2b-256 | bd4c266c9bd0b091185e6d9f7874f6f0ad4e1ca5ec4e8570e1c8a4bf81663742 |
Hashes for openmc_geometry_plot-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b3cc9839ab75b8fa8d32a51fb10ca8646c1ae03bb6918df67c75d80b888e5c5 |
|
MD5 | c0d87c68b13aa3d5292a406e6417b94e |
|
BLAKE2b-256 | 9419d5165885b08b275813fcd3794d71e570a4208a07a75edcc6eeb1ad4de510 |