mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 14:35:27 -04:00
Change plotting docstring to specify integer RGB values (#3868)
This commit is contained in:
parent
ba94c58230
commit
387b41ab65
1 changed files with 2 additions and 2 deletions
|
|
@ -197,13 +197,13 @@ _PLOT_PARAMS = dedent("""\
|
|||
Assigns colors to specific materials or cells. Keys are instances of
|
||||
:class:`Cell` or :class:`Material` and values are RGB 3-tuples, RGBA
|
||||
4-tuples, or strings indicating SVG color names. Red, green, blue,
|
||||
and alpha should all be floats in the range [0.0, 1.0], for example:
|
||||
and alpha should all be integers in the range [0, 255], for example:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
# Make water blue
|
||||
water = openmc.Cell(fill=h2o)
|
||||
universe.plot(..., colors={water: (0., 0., 1.))
|
||||
universe.plot(..., colors={water: (0, 0, 255))
|
||||
seed : int
|
||||
Seed for the random number generator
|
||||
openmc_exec : str
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue