mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Allow color names, rename Plot attributes, add openmc.plot_inline()
This commit is contained in:
parent
24cd12cf3a
commit
3913d55e2c
28 changed files with 219 additions and 190 deletions
|
|
@ -138,7 +138,7 @@ plot = openmc.Plot(plot_id=1)
|
|||
plot.origin = [0, 0, 0]
|
||||
plot.width = [4, 4]
|
||||
plot.pixels = [400, 400]
|
||||
plot.color = 'mat'
|
||||
plot.color_by = 'material'
|
||||
|
||||
# Instantiate a Plots object and export to XML
|
||||
plot_file = openmc.Plots([plot])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue