mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Fix meaning of "masking" for plots (#2510)
This commit is contained in:
parent
4248beff1b
commit
45006584ca
6 changed files with 44 additions and 13 deletions
|
|
@ -59,7 +59,7 @@ def _get_legend_label(this, type):
|
|||
"""Gets a label for the element or nuclide or material and reaction plotted"""
|
||||
if isinstance(this, str):
|
||||
return f'{this} {type}'
|
||||
elif this.name is '':
|
||||
elif this.name == '':
|
||||
return f'Material {this.id} {type}'
|
||||
else:
|
||||
return f'{this.name} {type}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue