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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cc39de48b2980431730fb9cda72a95e8ef16294d56888650daf1f9ed29c999a |
|
MD5 | ff5539e575a0d0d19089a9738532477d |
|
BLAKE2b-256 | 07455df7073770c45d321d1c80406349931bc4713f33d9b36336a2f0ad832217 |
Hashes for openmc_geometry_plot-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ad207ddb421eb1e9a3ad7ada6ea921d6928ced28ca2d3e4f67c7e7097b4a520 |
|
MD5 | 3618dc8408667cf77983d8d8069c71a4 |
|
BLAKE2b-256 | e9e7bc049f5122862b6751433549549e4de6e094afe2116c70a8d61fe9a67b8d |