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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2332687efbff4f5eddc90281d09b315d540a5fd1ef41830dbc7a0b32f2e709b7 |
|
MD5 | e7afeaba368463ef329582a9e07fc483 |
|
BLAKE2b-256 | 48a583d7a876c2f2189d14df0d9459958b39a1186c40a3f0b3c10bbc17921b12 |
Hashes for openmc_geometry_plot-0.3.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b13f48c602e0d487407e21d26653a5ec5852a4a4795c6c197404be8e271fb289 |
|
MD5 | 48051092187248615fb3edf994bf84f0 |
|
BLAKE2b-256 | 8c56fe53735d355fd80bb9f6378621462e73b05395afb67c3aaaf4f322f5a36b |