Skip to content

Commit 387b41a

Browse files
Change plotting docstring to specify integer RGB values (#3868)
1 parent ba94c58 commit 387b41a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openmc/plots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@
197197
Assigns colors to specific materials or cells. Keys are instances of
198198
:class:`Cell` or :class:`Material` and values are RGB 3-tuples, RGBA
199199
4-tuples, or strings indicating SVG color names. Red, green, blue,
200-
and alpha should all be floats in the range [0.0, 1.0], for example:
200+
and alpha should all be integers in the range [0, 255], for example:
201201
202202
.. code-block:: python
203203
204204
# Make water blue
205205
water = openmc.Cell(fill=h2o)
206-
universe.plot(..., colors={water: (0., 0., 1.))
206+
universe.plot(..., colors={water: (0, 0, 255))
207207
seed : int
208208
Seed for the random number generator
209209
openmc_exec : str

0 commit comments

Comments
 (0)